Javi

VSCode: debug config

Aug 14th, 2025
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "type": "node",
  6. "request": "launch",
  7. "name": "Backend",
  8. "runtimeExecutable": "npx",
  9. "runtimeArgs": [
  10. "ts-node-dev",
  11. "--respawn",
  12. "--transpile-only",
  13. "src/index.ts"
  14. ],
  15. "cwd": "${workspaceFolder}/packages/backend",
  16. "envFile": "${workspaceFolder}/packages/backend/.env",
  17. "env": {
  18. "LOG_LEVEL": "DEBUG"
  19. },
  20. "console": "integratedTerminal",
  21. "internalConsoleOptions": "neverOpen"
  22. },
  23. {
  24. "type": "node",
  25. "request": "launch",
  26. "name": "Backend Tests",
  27. "runtimeExecutable": "npx",
  28. "runtimeArgs": [
  29. "jest",
  30. "--runInBand",
  31. "--config",
  32. "jest.config.js",
  33. "--testMatch",
  34. "<rootDir>/src/**/*.test.ts"
  35. ],
  36. "cwd": "${workspaceFolder}/packages/backend",
  37. "envFile": "${workspaceFolder}/packages/backend/.env",
  38. "console": "integratedTerminal",
  39. "internalConsoleOptions": "neverOpen"
  40. },
  41. {
  42. "name": "Firefox",
  43. "type": "firefox",
  44. "request": "launch",
  45. "reAttach": true,
  46. "url": "http://localhost:3000/index.html",
  47. "webRoot": "${workspaceFolder}/packages/frontend/src",
  48. "pathMappings": [
  49. {
  50. "url": "http://localhost:3000/src",
  51. "path": "${workspaceFolder}/packages/frontend/src"
  52. }
  53. ]
  54. }
  55. ]
  56. }
Advertisement
Add Comment
Please, Sign In to add comment