Skip to content

Making debugger work with nodemon and babel-node #127

Description

@ganapativs

When trying to debug with vscode, debugger gets attached, breakpoint gets added(shows proper red dot). but, the control won't stop at breakpoint.

But, in chrome inspect(chrome://inspect), everything works fine.

The app is running inside docker.

command(notice babel-node here):
nodemon --delay 5 --inspect=0.0.0.0:9229 -w src --exec \"babel-node src\"

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "attach",
            "name": "Attach to crazy app",
            "port": 9229,
            "address": "localhost",
            "sourceMaps": true,
            "remoteRoot": "/root/app/",
            "localRoot": "${workspaceRoot}", // app is workspace root and has src folder
            "smartStep": true,
            "restart": true
        }
    ]
}

What am I missing here?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions