|
| 1 | +{ |
| 2 | + "version": "0.2.0", |
| 3 | + "configurations": [ |
| 4 | + { |
| 5 | + "name": "Debug current file", |
| 6 | + "type": "node", |
| 7 | + "request": "launch", |
| 8 | + |
| 9 | + // Debug current file in VSCode |
| 10 | + "program": "${file}", |
| 11 | + |
| 12 | + /* |
| 13 | + Path to tsx binary |
| 14 | + Assuming locally installed |
| 15 | + */ |
| 16 | + "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/tsx", |
| 17 | + |
| 18 | + /* |
| 19 | + Open terminal when debugging starts (Optional) |
| 20 | + Useful to see console.logs |
| 21 | + */ |
| 22 | + "console": "integratedTerminal", |
| 23 | + "internalConsoleOptions": "neverOpen", |
| 24 | + |
| 25 | + // Files to exclude from debugger (e.g. call stack) |
| 26 | + "skipFiles": [ |
| 27 | + // Node.js internal core modules |
| 28 | + "<node_internals>/**", |
| 29 | + |
| 30 | + // Ignore all dependencies (optional) |
| 31 | + "${workspaceFolder}/node_modules/**" |
| 32 | + ] |
| 33 | + }, |
| 34 | + { |
| 35 | + "name": "Debug All Tests (Node)", |
| 36 | + "type": "node", |
| 37 | + "request": "launch", |
| 38 | + "skipFiles": ["<node_internals>/**"], |
| 39 | + "runtimeExecutable": "npm", |
| 40 | + "runtimeArgs": [ |
| 41 | + "run-script", |
| 42 | + "test", |
| 43 | + "--inspect-brk=9229", |
| 44 | + "--preserve-symlinks" |
| 45 | + ], // Use --inspect-brk for debugging |
| 46 | + "console": "integratedTerminal", |
| 47 | + "internalConsoleOptions": "neverOpen", |
| 48 | + "cwd": "${workspaceFolder}", |
| 49 | + "sourceMaps": true, |
| 50 | + "smartStep": true, |
| 51 | + "resolveSourceMapLocations": [ |
| 52 | + "${workspaceFolder}/**", |
| 53 | + "!**/node_modules/**", |
| 54 | + "node_modules/@event-driven.io/emmett-expressjs/**/*.*" |
| 55 | + ] |
| 56 | + } |
| 57 | + ] |
| 58 | +} |
0 commit comments