Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node legacy --debug doesn't work with VSCode in Docker for Mac #4

Closed
BretFisher opened this issue May 21, 2017 · 0 comments
Closed

Comments

@BretFisher
Copy link
Owner

node --debug when running VSCode without docker (node running directly on Mac) works with break points.

Trying it when node is inside a container looks like it works, but VSCode never stops for breakpoints. Just like this user describes: microsoft/vscode#22306 (comment)

I've followed documentation from:
https://code.visualstudio.com/docs/nodejs/nodejs-debugging
and
https://github.com/weinand/vscode-recipes/tree/master/Docker-TypeScript

And I believe this setup worked in early 2017, but now doesn't.

VSCode 1.12.2
Docker for Mac 17.05.0-ce-mac11
Node 6.10.3

CMD in container: node --debug=5858 ../node_modules/nodemon/bin/nodemon.js
Ports are open and responding
VSCode launch.json config:

        {
            "name": "Attach 5858 --debug",
            "type": "node",
            "request": "attach",
            "protocol": "legacy",
            "port": 5858,
            "address": "localhost",
            "restart": false,
            "sourceMaps": false,
            "outFiles": [],
            "localRoot": "${workspaceRoot}",
            "remoteRoot": "/opt/app"
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant