A while ago my RubyMine 2025.2.1 suddenly just stopped connecting to SketchUp 2025 for debug sessions. RM would launch Sketchup but the connect attempt would timeout. My settings hadn’t changed, I was stumped. I’m on a Mac so I ran ‘lsof -aP | grep -e SketchUp -e rubymine’ in a terminal immediately after launching SU from RM before the timeout. It showed that the two would connect but the port to RM was some random port, not the expected one for debugging.
Possible fix:
I trashed the .idea.log and started a new session. The interesting part of the log looked like this:
2025-09-07 10:34:09,203 [ 21466] WARN - #org.rubyforge.debugcommons.RubyDebuggerProxy - Cannot add breakpoint to: RubyDebugTarget[baseDir: null, debuggedFile: null, port: 6162, remote: true, process: null, process alive: n/a]
org.rubyforge.debugcommons.RubyDebuggerException: Interruped during reading catchpoint set (timeout: 20)
at org.rubyforge.debugcommons.ReadersSupport.poll(ReadersSupport.java:432)
at org.rubyforge.debugcommons.ReadersSupport.readCatchpointSet(ReadersSupport.java:400)
at org.rubyforge.debugcommons.RubyDebuggerProxy.addExceptionalBreakpoint(RubyDebuggerProxy.java:310)
at org.rubyforge.debugcommons.RubyDebuggerProxy.addBreakpointImpl(RubyDebuggerProxy.java:290)
at org.rubyforge.debugcommons.RubyDebuggerProxy.attachToRubyDebug(RubyDebuggerProxy.java:216)
at org.rubyforge.debugcommons.RubyDebuggerProxy.attach(RubyDebuggerProxy.java:180)
at org.jetbrains.plugins.ruby.ruby.debugger.impl.RubyDebugProcess.attachToProxy(RubyDebugProcess.java:268)
at org.jetbrains.plugins.ruby.ruby.debugger.impl.RubyDebugProcess.lambda$startAttachingThread$1(RubyDebugProcess.java:235)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.InterruptedException
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1770)
at java.base/java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:460)
at org.rubyforge.debugcommons.ReadersSupport.pollGently(ReadersSupport.java:329)
at org.rubyforge.debugcommons.ReadersSupport.poll(ReadersSupport.java:422)
... 8 more
2025-09-07 10:34:14,094 [ 26357] INFO - #c.i.m.l.c.q.QuotaManager2Impl - New quota state is: Available(current=11376.758, maximum=1000000, until=2025-09-29T21:00:00Z)
```
This looked like an exception was being thrown with something about RubyDebuggerProxy.addBreakpointImpl.
I deleted all my breakpoints in RM and it connected!
I had been doing some file renaming (git mv) and there may have been some breakpoints pointing to nowehere.
