launch.json 1010 B

1234567891011121314151617181920212223242526272829303132333435
  1. {
  2. "$schema": "vscode://schemas/launch",
  3. "version": "0.2.0",
  4. "configurations": [
  5. {
  6. "name": "Run 3x-ui (Debug)",
  7. "type": "go",
  8. "request": "launch",
  9. "mode": "auto",
  10. "program": "${workspaceFolder}",
  11. "cwd": "${workspaceFolder}",
  12. "env": {
  13. "XUI_DEBUG": "true"
  14. },
  15. "console": "integratedTerminal"
  16. },
  17. {
  18. "name": "Run 3x-ui (Debug, custom env)",
  19. "type": "go",
  20. "request": "launch",
  21. "mode": "auto",
  22. "program": "${workspaceFolder}",
  23. "cwd": "${workspaceFolder}",
  24. "env": {
  25. // Set to true to serve assets/templates directly from disk for development
  26. "XUI_DEBUG": "true",
  27. // Uncomment to override DB folder location (by default uses working dir on Windows when debug)
  28. // "XUI_DB_FOLDER": "${workspaceFolder}",
  29. // Example: override log level (debug|info|notice|warn|error)
  30. // "XUI_LOG_LEVEL": "debug"
  31. },
  32. "console": "integratedTerminal"
  33. }
  34. ]
  35. }