Skip to content

Instantly share code, notes, and snippets.

@ty4z2008
Created April 8, 2020 03:02
Show Gist options
  • Save ty4z2008/86db688b4a797705d6729c0e69723339 to your computer and use it in GitHub Desktop.
Save ty4z2008/86db688b4a797705d6729c0e69723339 to your computer and use it in GitHub Desktop.
use ts-node debug typescript in visual code of config
{
"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"
}
}
]
}
@ty4z2008
Copy link
Author

ty4z2008 commented Apr 8, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment