Ts-node-dev: Debug with webstorm or vscode

Created on 8 Jun 2019  路  7Comments  路  Source: wclr/ts-node-dev

Are there any guides on how to Debug your ts files with webstorm or vscode using ts-node-dev?

I tried:

Screenshot 2019-06-08 at 21 53 19

Most helpful comment

@jazib-m launch ts-node-dev with --inspect and then just attach to running instance:

 {
            "type": "node",
            "request": "attach",
            "name": "Attach",
            "port": 9229,
            "restart": true
 }

All 7 comments

please, read some issues about vscode debugger

Man I'm having the same issue with VS code, can anyone please provide their launch.json

@jazib-m launch ts-node-dev with --inspect and then just attach to running instance:

 {
            "type": "node",
            "request": "attach",
            "name": "Attach",
            "port": 9229,
            "restart": true
 }

for anyone struggling to get webstorm to attach to either process. Here's the trick

node parameters => --inspect=9229
javascript file => node_modulests-node-dev\bints-node-dev
Application Parameters => --project tsconfigNode.json --inspect=9001 -- app.ts

all good?

@ludetc while your instructions worked for me when I first ran it, as soon as I do a change, the process restarts but the debugger doesn't reconnect. Any advices there?

Screen Shot 2020-03-30 at 11 21 14

@Tinadim I'm having the same issue, did you ever find a resolution for this?

Was this page helpful?
0 / 5 - 0 ratings