M
M
magary42021-04-30 15:06:53
Debugging
magary4, 2021-04-30 15:06:53

How to make the debugger connect automatically?

here is my config

{
        "type": "node",
        "request": "attach",
        "timeout": 40000,
        "protocol": "auto",
        "port": 9229,
        "restart": true,
        "localRoot": "${workspaceFolder}/.../dist",
        "remoteRoot": "/home/ct/js/.../dist",
        "outFiles": [
          "${workspaceFolder}/js/.../dist/**/*.js"
        ],
        "skipFiles": [
          "<node_internals>/**/*.js",
        ]
      },


VSCode connects successfully and stops execution at breakpoints, but if I resave the file and nodemone runs build, the debugger is undone,

how can I make the debugger reconnect automatically after rebuilding?
Thank you

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question