#How can I debug typescript in vscode directly without running any tsc tasks?

1 messages · Page 1 of 1 (latest)

proper hamlet
#

according to vscode doc,
Debugging typescript need an preLaunchTask which runs tsc in the launch.json config, but this results in a new js file, which I don't want.

Is there any ways to do it that are more direct?
like npm packages: tsx, ts-node, we can run ts directly in terminal, and we can't run them directly in vscode

Please help.

runic mauve
#

Get Deno 🙂

#

single binary, then run deno run file.ts in the terminal

brave whale
#
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "tsx",
      "type": "node",
      "request": "launch",
      "program": "${workspaceFolder}/src/index.ts",
      "runtimeExecutable": "tsx",
      "console": "integratedTerminal",
      "skipFiles": [
        "<node_internals>/**",
        "${workspaceFolder}/node_modules/**",
      ],
    }
  ]
}
proper hamlet
#

!close

quartz terrace
quartz terrace
hollow blaze
#

Slow in what sense?