You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

launch.json.template 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "Python: Flask API",
  6. "type": "debugpy",
  7. "request": "launch",
  8. "module": "flask",
  9. "env": {
  10. "FLASK_APP": "app.py",
  11. "FLASK_ENV": "development",
  12. "GEVENT_SUPPORT": "True"
  13. },
  14. "args": [
  15. "run",
  16. "--host=0.0.0.0",
  17. "--port=5001",
  18. "--no-debugger",
  19. "--no-reload"
  20. ],
  21. "jinja": true,
  22. "justMyCode": true,
  23. "cwd": "${workspaceFolder}/api",
  24. "python": "${workspaceFolder}/api/.venv/bin/python"
  25. },
  26. {
  27. "name": "Python: Celery Worker (Solo)",
  28. "type": "debugpy",
  29. "request": "launch",
  30. "module": "celery",
  31. "env": {
  32. "GEVENT_SUPPORT": "True"
  33. },
  34. "args": [
  35. "-A",
  36. "app.celery",
  37. "worker",
  38. "-P",
  39. "solo",
  40. "-c",
  41. "1",
  42. "-Q",
  43. "dataset,generation,mail,ops_trace",
  44. "--loglevel",
  45. "INFO"
  46. ],
  47. "justMyCode": false,
  48. "cwd": "${workspaceFolder}/api",
  49. "python": "${workspaceFolder}/api/.venv/bin/python"
  50. },
  51. {
  52. "name": "Next.js: debug full stack",
  53. "type": "node",
  54. "request": "launch",
  55. "program": "${workspaceFolder}/web/node_modules/next/dist/bin/next",
  56. "runtimeArgs": ["--inspect"],
  57. "skipFiles": ["<node_internals>/**"],
  58. "serverReadyAction": {
  59. "action": "debugWithChrome",
  60. "killOnServerStop": true,
  61. "pattern": "- Local:.+(https?://.+)",
  62. "uriFormat": "%s",
  63. "webRoot": "${workspaceFolder}/web"
  64. },
  65. "cwd": "${workspaceFolder}/web"
  66. }
  67. ]
  68. }