launch.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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": "sentry frontend",
  9. "type": "chrome",
  10. "request": "launch",
  11. "url": "http://dev.getsentry.net:8000",
  12. "webRoot": "${workspaceRoot}/static"
  13. },
  14. {
  15. "name": "sentry backend",
  16. "type": "python",
  17. "request": "launch",
  18. "stopOnEntry": true,
  19. "program": "${workspaceRoot}/.venv/bin/sentry",
  20. "args": ["devserver"],
  21. "cwd": "${workspaceRoot}",
  22. "debugOptions": ["WaitOnAbnormalExit", "WaitOnNormalExit", "RedirectOutput"]
  23. },
  24. {
  25. "name": "sentry backend debug",
  26. "type": "python",
  27. "request": "launch",
  28. "program": "${workspaceRoot}/.venv/bin/sentry",
  29. "args": ["devserver", "--debug-server", "--no-pretty"],
  30. "cwd": "${workspaceRoot}"
  31. },
  32. {
  33. "name": "jest - current file",
  34. "type": "node",
  35. "request": "launch",
  36. "program": "${workspaceFolder}/node_modules/.bin/jest",
  37. "args": [
  38. // this runs one test at a time, rather than running them in parallel
  39. // (necessary for debugging so that you know you're hitting a single
  40. // test's breakpoints, in order)
  41. "--runInBand",
  42. "--watch",
  43. "--verbose",
  44. "${file}"
  45. ],
  46. // if we don't set this, output goes to the VSCode debug terminal, which
  47. // only prints the test output if "outputCapture" is also set, and even
  48. // then won't print in color
  49. "console": "integratedTerminal",
  50. // since we're not using it, don't automatically switch to it
  51. "internalConsoleOptions": "neverOpen"
  52. },
  53. {
  54. "name": "pytest - current file",
  55. "type": "python",
  56. "request": "launch",
  57. "module": "pytest",
  58. "args": ["--verbosity", "2", "${file}"],
  59. "django": true,
  60. "env": {
  61. "SENTRY_MODEL_MANIFEST_FILE_PATH": "./model-manifest.json"
  62. },
  63. "justMyCode": false
  64. }
  65. ]
  66. }