Debug nodejs Application In Docker Container Using WebStorm - Part 3

In the part 1 of this series we implemented a simple RESTful service that simply responds with "Hello, world!". We also demonstrated hitting a breakpoint. In part 2 we containerized our app and demonstrated that we could run it in a Docker container without a single change. In this third part we'll build on that by adding the configurations required so we can hit breakpoints while our app is running inside of a Docker container. As a reminder you can find the source code for this tutorial on github . Debugging nodejs Remotely A container is separate from our local environment. It's not a virtual machine but better described as a minimal runtime environment. We don't really need to understand a container other than knowing that it provides just the elements our RESTful web service needs and nothing else. To debug a nodejs application that runs inside a container we need to be able to connect to it remotely. For that we'll tell nodejs that it i...