Debugger not focusing on code on breakpoints with server running on Docker
I was able to debug on RubyMine without any issues until I updated to the latest version. The following settings are not working:
It seems to work when there is an execution error, like here:
but it enters an endless cycle of exceptions:
so, was I get through this exceptions after clicking on the resume program button like 50 times, it finally loads the debugger for the server; however, once the program is running, it never stops at the breakpoints in my code; that is, shows the breakpoints in the debugger console, but in my code, like in the pictures above.
What could be wrong? I have done a fresh installation of all containers, but the problem persists.
Please sign in to leave a comment.
SOLVED
Solved in a strange way. Had to set my local sdk path to its full path from my system root, instead of the relateive path of /, as I've always done.
When was this change introduced? Your tutorial should be very specific about setting up the path map in the remote SDK.
Hello,
Could you please provide more details of what you've changed (specifying what kind of remote interpreter you are using) and in addition, what steps you've taken (a project or code sample for reproduce would be also great).
Hi, yes, I'm using Ruby 3.0.6 with docker-compose
I basically followed the usual procedure to set up a remote interpreter, like in this post https://www.jetbrains.com/help/ruby/using-docker-compose-as-a-remote-interpreter.html#configure_remote_interpreter
The main difference is that in step 4 of Configure Compose as a remote interpreter , “Select the added SDK in the Ruby SDK and Gems page and click OK.”, before hitting OK, I edited my “Path Mappings”, and instead of setting my Local Path to “/”, as I have always done, I used my complete local path to my project; e.g. “my_local_path/to_my_project/my_rails_app”. My remote path is just the usual “/app”.
My RubyMine info:
debugger.new.tool.window.layout=true
ide.experimental.ui=true
Hope this helps anyone else
Hello Arturo,
I tried to reproduce it in RubyMine 2024.1.2 with the added docker-compose SDK but didn't need to configure path mappings in order to make the debugger work. It'd be great if you could check how it goes for you with our sample app. And another thing that might be worth checking is that you've clicked on ‘Show all frames’ in the debugger's tool window above the threads' list.
Ok, let me check the sample App, and I'll get back at you