launch.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "name": "Python: Celery",
  9. "type": "debugpy",
  10. "request": "launch",
  11. "module": "celery",
  12. "justMyCode": true,
  13. "args": ["-A", "app.celery", "worker", "-P", "gevent", "-c", "1", "--loglevel", "info", "-Q", "dataset,generation,mail"],
  14. "envFile": "${workspaceFolder}/.env",
  15. "env": {
  16. "FLASK_APP": "app.py",
  17. "FLASK_DEBUG": "1",
  18. "GEVENT_SUPPORT": "True"
  19. },
  20. "console": "integratedTerminal",
  21. "python": "${command:python.interpreterPath}"
  22. },
  23. {
  24. "name": "Python: Flask",
  25. "type": "debugpy",
  26. "request": "launch",
  27. "module": "flask",
  28. "env": {
  29. "FLASK_APP": "app.py",
  30. "FLASK_DEBUG": "1",
  31. "GEVENT_SUPPORT": "True"
  32. },
  33. "args": [
  34. "run",
  35. "--host=0.0.0.0",
  36. "--port=5001",
  37. "--debug"
  38. ],
  39. "jinja": true,
  40. "justMyCode": true,
  41. "python": "${command:python.interpreterPath}"
  42. }
  43. ]
  44. }