Skip to content

Instantly share code, notes, and snippets.

@mysteryven
Last active April 22, 2022 03:08
Show Gist options
  • Save mysteryven/5b0aaea291aeaf9b3ca99bc3921e9f83 to your computer and use it in GitHub Desktop.
Save mysteryven/5b0aaea291aeaf9b3ca99bc3921e9f83 to your computer and use it in GitHub Desktop.
vs code 调试 ts 文件
{
"version": "0.2.0",
"configurations": [
{
"name": "Example",
"type": "node",
"request": "launch",
"runtimeExecutable": "/usr/local/bin/node",
"runtimeArgs": [
"--nolazy",
"-r",
"ts-node/register/transpile-only"
],
"args": [
"bin/startServer.ts"
],
"cwd": "${workspaceRoot}",
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"<node_internals>/**",
"node_modules/**"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment