Answer the question
In order to leave comments, you need to log in
Any idea how to debug NodeJS remotely in a container?
Greetings colleagues!
I'm trying to set up remote debugging of a NodeJS project in a docker container. I use JetBrains
products in particular WebStorm
Something I don't see there is a template for setting up remote debugging.
What I did to achieve the goal:
But it seems to me that I am moving in the wrong direction.
Until recently, I worked locally all the time, but then I ran out of resources and I started using Docker Machine , now debugging suffers.
Answer the question
In order to leave comments, you need to log in
The IDE looks at the local directory. Accordingly, it must be mounted in any way.
To remotely debug a Node.js server, I use Visual Studio Code plus Remote - SSH.
There is also an extension for docker.
https://m.habr.com/en/post/454280/
Good luck!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question