1

VS Code uses a locally installed version of node for debugging. My question is whether it is possible to use node in a docker container instead.

I've found several references on doing something like this with the remote debugging approach vscode offers. This seems to be pretty close to what I'm looking for. However, I don't want to start the container externally.

My example is the simple hello world from vscode docs. I really would love to simply press the launch button and start debugging in it without having a locally installed version of node.

asked Aug 2, 2016 at 20:52
1
  • Just came across vscode tasks. This seems to be what I'm looking for. However, it doesn't seem to be able to start a docker container. Will have to further explorer on this. Commented Aug 4, 2016 at 9:18

2 Answers 2

1

I'm not aware of any way to launch the container from the debugger in Visual Studio Code. However, for Visual Studio Community, there is the Docker Tools for Visual Studio plugin.

answered Aug 2, 2016 at 22:41
Sign up to request clarification or add additional context in comments.

Comments

1
answered Aug 13, 2016 at 23:03

1 Comment

I know this excellent article which is indeed one possible solution. However, I was wondering whether it is possible to have this all running in one transaction. The way via remote debugging explained by Alexander requires to start the container (e.g. via the command line) and then attach the debugger. It would be great to tell vscode that it has to launch the container itself. Then it would be possible to simply click start and immediately debug.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.