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.

1
5 comments

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.

0

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).

0

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:

  • RubyMine 2024.1.2
  • Build #RM-241.17011.76, built on May 21, 2024
  • Runtime version: 17.0.11+1-b1207.24 aarch64
  • VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  • macOS 14.2.1
  • GC: G1 Young Generation, G1 Old Generation
  • Memory: 2048M
  • Cores: 8
  • Metal Rendering is ON
  • Registry:
     debugger.new.tool.window.layout=true
     ide.experimental.ui=true

Hope this helps anyone else
 

0

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.

1

Ok, let me check the sample App, and I'll get back at you

0

Please sign in to leave a comment.