Last active
August 13, 2024 15:19
-
-
Save dereckmezquita/3d50bf9346668b839d31e1a722d18260 to your computer and use it in GitHub Desktop.
How to interactive debug TypeScript in vscode.
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: pytest", | |
"type": "python", | |
"request": "launch", | |
"module": "pytest", | |
"args": [ | |
"-v", | |
"--no-cov" | |
], | |
"cwd": "${workspaceFolder}", | |
"env": {"PYTHONPATH": "${workspaceFolder}"}, | |
"console": "integratedTerminal" | |
} | |
] | |
} |
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
// https://yewtu.be/watch?v=f3i9b3uK00U | |
// npm install --save-dev ts-node tsconfig-paths | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Debug TypeScript", | |
"skipFiles": [ | |
"<node_internals>/**" | |
], | |
"program": "${file}", | |
"runtimeArgs": [ | |
"-r", | |
"ts-node/register", | |
"-r", | |
"tsconfig-paths/register", | |
], | |
// "args": [ | |
// // if tsconfig in different location than expected | |
// "-P", | |
// "server/tsconfig.json" | |
// ], | |
// "console": "integratedTerminal", | |
// "outFiles": [ | |
// "${workspaceFolder}/server/dist/**/*.js" | |
// ] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment