Skip to content

Instantly share code, notes, and snippets.

@alisafariir
Created December 27, 2022 21:17
Show Gist options
  • Save alisafariir/51c60f3cff84fcca8ac001bc7bf59fce to your computer and use it in GitHub Desktop.
Save alisafariir/51c60f3cff84fcca8ac001bc7bf59fce to your computer and use it in GitHub Desktop.
Nestjs vs code debugging
{
// 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