Skip to content

Instantly share code, notes, and snippets.

@chuanqisun
Last active July 6, 2023 16:56
Show Gist options
  • Save chuanqisun/1cc5632a9661be790bb148993ea96dca to your computer and use it in GitHub Desktop.
Save chuanqisun/1cc5632a9661be790bb148993ea96dca to your computer and use it in GitHub Desktop.
Run tsx on the current typescript file via VS Code Launch with debugger suppoer
{
"name": "tsx current file",
"request": "launch",
"runtimeArgs": ["run-script", "env"],
"runtimeExecutable": "npm",
"args": ["tsx", "${relativeFile}"],
"skipFiles": ["<node_internals>/**"],
"type": "node"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment