nestjs vscode debug

Solutions on MaxInterview for nestjs vscode debug by the best coders in the world

showing results for - "nestjs vscode debug"
Sofia
03 Oct 2016
1.vscode/launch.json
2
3{
4  // Use IntelliSense to learn about possible attributes.
5  // Hover to view descriptions of existing attributes.
6  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
7  "version": "0.2.0",
8  "configurations": [
9    {
10      "type": "node",
11      "request": "attach",
12      "name": "Attach NestJS WS",
13      "port": 9229,
14      "restart": true,
15      "stopOnEntry": false,
16      "protocol": "inspector"
17    }
18  ]
19}
20and in package.json (Nest new CLI commands, requires 6.8.x)
21
22{
23  "name": "nest-app",
24  "scripts": {
25    "start:debug": "nest start --debug --watch"
26  }
27}
Domenico
16 Mar 2018
1{
2  "type": "node",
3  "request": "launch",
4  "name": "Launch Program",
5  "program": "${workspaceFolder}/src/main.ts",
6  "preLaunchTask": "tsc: watch - tsconfig.build.json",
7  "outFiles": ["${workspaceFolder}/dist/**/*.js"],
8  "skipFiles": [
9    "${workspaceFolder}/node_modules/**/*.js",
10    "<node_internals>/**/*.js"
11  ]
12}