Launching node docker container for debugging from VS Code

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.

  • How do we get something unique like pod id or container id in kubernetes deployment yamls
  • Docker development workflow for compiled components in a docker-compose setup
  • How to get my docker centos sshd passwordless server running?
  • What is the file-system of a Docker container? On which file system does an application running inside this container runs on?
  • Running multiple instances of an image with docker-compose fails
  • Query MySql database in Docker
  • 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.

  • How to create a bidirectional link between containers?
  • Docker remove all images permission denied
  • ARG substitution in RUN command not working for Dockerfile
  • Kubernetes error pulling of local registry
  • Can't run python script with interpreter inside docker [Errno 13] Permission denied
  • Grunt build inside Docker Container returned a Non-zero code: 6
  • 2 Solutions collect form web for “Launching node docker container for debugging from VS Code”

    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.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.