How to config RubyMine debug?

Can you elaborate a bit more on what isn’t working?

Sorry, Because SketchUp starts too slowly, the RDebug ide connection times out.
I found that I started SketchUp manually and then started debugging. It works normally.

Interesting, I didn’t run into that before. But I’ve mostly used VSCode the last few years, and with that there was no way to make VSCode wait, so I had to launch and attach the debugger in separate steps, like you describe with RubyMine here.

Yes, this is a trustworthy approach.