Docker Node.js Debug session: wrong/source files opened instead of the local ones

When attaching to a Node.js Debug session from Docker (using Attach to Node.js) and setting breakpoints, wrong files (source files from the container) are opened instead of the local ones from the project - making the debugging workflow much harder. I've set the Remote URL for the project in the Debug config window, but apparently its not used. Debugging Node.js from Docker is a rather common use case imho. After some searching I see there is already a ticket...

Anyone who could fix this?

https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000386099-How-to-debug-ts-node-via-Attach-to-Node-js-Chrome-?input_string=Docker%20Node.js%20Debug%20session%3A%20wrong%20files%20opened



3 comments

What IDE version do you use? Similar issue (https://youtrack.jetbrains.com/issue/WEB-34204) is fixed in 2018.3.1

0

I'm using (latest) Idea 183.4886.37 (wrote to this section as I guess this is WebStorm subject), plugins were updated. Is it possible that the Idea plugin is updated later with this change?

0

> Is it possible that the Idea plugin is updated later with this change?

No:(

Please can you share a sample project we can use to recreate the issue?

0

Please sign in to leave a comment.