Created
April 8, 2020 03:02
-
-
Save ty4z2008/86db688b4a797705d6729c0e69723339 to your computer and use it in GitHub Desktop.
use ts-node debug typescript in visual code of config
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.3.0", | |
"configurations":[ | |
{ | |
"name": "Websocket-debug", | |
"type": "node", | |
"request": "launch", | |
"args": ["${workspaceRoot}/server/websocket/src/index.ts"], | |
"runtimeArgs": ["-r", "ts-node/register"], | |
"cwd": "${workspaceRoot}", | |
"protocol": "inspector", | |
"internalConsoleOptions": "openOnSessionStart", | |
"env": { | |
"DEBUG": "*", | |
"NODE_ENV": "development", | |
"TS_NODE_IGNORE": "false", | |
"TS_NODE_PROJECT": "${workspaceRoot}/server/websocket/tsconfig.json" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ts-node
https://github.com/TypeStrong/ts-node