I
I
Igor2020-08-19 10:27:27
Debugging
Igor, 2020-08-19 10:27:27

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.

5f3cd43b4f98f861095861.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2020-08-19
@Sanes

The IDE looks at the local directory. Accordingly, it must be mounted in any way.

A
Aryeh Leonid R., 2020-08-27
@aryeh

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 question

Ask a Question

731 491 924 answers to any question