Live Debugging with Docker
During the DockerCon 2016 keynote, I demonstrated a development workflow with Docker for Mac, going from a fresh laptop to a running app in no time. The especially cool part was when I live-debugged a Node.js app running inside a container from my IDE, despite having no Node.js runtime installed on my laptop. Here I’m going to show you how to do it yourself.
Here’s what you’ll need:
- Docker: I recommend Docker for Mac or Windows, which are in public beta.
- An IDE which supports Node.js remote debugging: I used Visual Studio Code.
- A Node.js application: I’ll create a simple one as part of this tutorial.
Create a directory to work from:
Read the entire article here, Live Debugging with Docker
via the fine folks at Docker.