Created
July 16, 2024 19:02
-
-
Save pedrovasconcellos/eaf35729d4908631c808b24ebc5951b6 to your computer and use it in GitHub Desktop.
Enable Typescript debug mode in vscode
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"args": [], | |
"cwd": "${workspaceRoot}", | |
"env": { | |
"NODE_ENV": "development" | |
}, | |
"name": "DEBUG", | |
"preLaunchTask": "compile", | |
"program": "${workspaceRoot}/src/index.ts", | |
"request": "launch", | |
"runtimeArgs": [ | |
"--nolazy" | |
], | |
"runtimeExecutable": null, | |
"sourceMaps": true, | |
"stopOnEntry": true, | |
"type": "node" | |
}, | |
{ | |
"name": "Attach", | |
"type": "node", | |
"request": "attach", | |
"port": 5858 | |
} | |
] | |
} |
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
1 - Put both files in the .vscode directory | |
2 - the .vscode directory must be placed in the root |
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"type": "typescript", | |
"tsconfig": "tsconfig.json", | |
"option": "watch", | |
"problemMatcher": [ | |
"$tsc-watch" | |
], | |
"group": "build", | |
"label": "tsc: watch - tsconfig.json" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment