Created
December 27, 2022 21:17
-
-
Save alisafariir/51c60f3cff84fcca8ac001bc7bf59fce to your computer and use it in GitHub Desktop.
Nestjs vs code debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch Program", | |
"request": "launch", | |
"type": "node", | |
"runtimeArgs": [ | |
"run-script", | |
"start:debug", | |
"--nolazy", | |
"-r", | |
"ts-node/register" | |
], | |
"args": [ | |
"${workspaceFolder}/src/main.ts" | |
], | |
"skipFiles": [ | |
"${workspaceFolder}/node_modules/**/*.js", | |
"<node_internals>/**" | |
], | |
"autoAttachChildProcesses": true, | |
"runtimeExecutable": "npm", | |
"env": { | |
// setup your env | |
// "NODE_ENV": "development" | |
}, | |
"program": "${workspaceFolder}/src/main.ts", | |
"preLaunchTask": "tsc: watch - tsconfig.build.json", | |
"sourceMaps": true, | |
"cwd": "${workspaceRoot}", | |
"outFiles": [ | |
"${workspaceFolder}/dist/**/*.js" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment