Last active
June 1, 2023 08:50
-
-
Save barisbll/b37b0b5b1d509a850a19e510ae3db2d4 to your computer and use it in GitHub Desktop.
Typescript VSCode Debug Setting
This file contains hidden or 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
{ | |
// First build your application exp: npm run build | |
// Then run the index.js on debug mode exp: node --inspect ./dist/index.js | |
// For a running server on kubernetes after the ssh connection you can send a signal to process to open the debug mode | |
// exp: https://medium.com/hackernoon/debugging-node-without-restarting-processes-bd5d5c98f200 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"name": "Attach to Process", | |
"request": "attach", | |
"port": 9229, | |
"localRoot": "${workspaceFolder}/dist", | |
"remoteRoot": "/app/dist/", | |
"outFiles": [ | |
"${workspaceFolder}/dist/**/*.js" | |
], | |
"skipFiles": [ | |
"<node_internals>/**/*.js" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that, this one only works if your build folder is named "dist"