RubyMine debug issues in Docker

Answered

There seems to be no way in which I can configure RubyMine to debug in Docker.

 

I found this issue here, which I have replicated in 2019.3: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000259160-Failed-to-find-free-socket-port-for-process-dispatcher?input_string=RubyMine%20debug%20issues%20in%20Docker

 

Which seems to point to an issue from ruby-debug-ide (although debugging works fine in VS Code without any of the workarounds listed) https://github.com/ruby-debug/ruby-debug-ide/issues/73

 

I also tried the workaround in RubyMine, but to no avail.

 

1) Is there any update on fixing the above issue?

2) Why isn't there a way manually select a PID to attach to in "Attach to process"? It seems RubyMine doesn't recognize when rdebug is running in a docker container

3) What is the implementation for "Ignore non-project sources" in RubyMine?

0
1 comment

Hello Jack,

in case you have a similar problem like the one from the community thread you mentioned then please check https://github.com/ruby-debug/ruby-debug-ide/issues/107 There's a custom branch with fix and if it doesn't work it's worth adding a comment there. 

As for 'Attach to process' in case of Docker please add your vote to the corresponding request: https://youtrack.jetbrains.com/issue/RUBY-19213

'Ignore non-project sources' option is described here: https://www.jetbrains.com/help/ruby/settings-debugger.html

(It's being used to automatically skip the external libraries code and keep the focus on your own code)

0

Please sign in to leave a comment.