1
0

launch.json 1013 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. "XUI_DB_FOLDER": "x-ui",
  15. "XUI_LOG_FOLDER": "x-ui",
  16. "XUI_BIN_FOLDER": "x-ui"
  17. },
  18. "console": "integratedTerminal"
  19. },
  20. {
  21. "name": "Run 3x-ui (Postgres)",
  22. "type": "go",
  23. "request": "launch",
  24. "mode": "auto",
  25. "program": "${workspaceFolder}",
  26. "cwd": "${workspaceFolder}",
  27. "env": {
  28. "XUI_DEBUG": "true",
  29. "XUI_LOG_FOLDER": "x-ui",
  30. "XUI_BIN_FOLDER": "x-ui",
  31. "XUI_DB_TYPE": "postgres",
  32. "XUI_DB_DSN": "postgres://xui:[email protected]:5432/xui?sslmode=disable",
  33. "PATH": "C:\\Program Files\\PostgreSQL\\18\\bin;${env:PATH}"
  34. },
  35. "console": "integratedTerminal"
  36. },
  37. ]
  38. }