Run & Debug: Launch.json
VS Code Run and Debugger with launch.json
NestJS
Prepare Environment
$ npm run start:dev
...
[ Press CTRL-C to exit node process so VS Code debugger may be started ]Start the Debugger
"version": "0.2.0",
"configurations": [
{
"name": "Launch NestJS",
"type": "node",
"request": "launch",
"preLaunchTask": "npm: build",
"args": [
"${workspaceFolder}/dist/main.js"
],
"runtimeArgs": [
"--nolazy",
"-r",
"ts-node/register",
"-r",
"tsconfig-paths/register"
],
"sourceMaps": true,
"envFile": "${workspaceFolder}/.env",
"cwd": "${workspaceRoot}",
"console": "integratedTerminal",
"protocol": "inspector"
},
{
"name": "Attach NestJS by PID",
"type": "node",
"request": "attach",
"processId": "${command:PickProcess}" ],
"compounds": []
}Angular
Prepare Environment, Build & Serve:
Start the Debugger
Last updated
