launch.json 2.1 KB

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