# RubyMine debugger connection to SketchUp mysteriously stops - possible fix

**URL:** <https://forums.sketchup.com/t/rubymine-debugger-connection-to-sketchup-mysteriously-stops-possible-fix/339957>\
**Category:** Ruby API\
**Tags:** mac\
**Created:** [September 8, 2025, 9:13pm UTC](https://forums.sketchup.com/t/rubymine-debugger-connection-to-sketchup-mysteriously-stops-possible-fix/339957 "2025-09-08T21:13:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamvs](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@adamvs](https://forums.sketchup.com/u/adamvs)\
**Post date:** [September 8, 2025, 9:13pm UTC](https://forums.sketchup.com/t/rubymine-debugger-connection-to-sketchup-mysteriously-stops-possible-fix/339957/1 "2025-09-08T21:13:50Z")

</div>

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:

````javascript
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.

````

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [September 8, 2025, 9:56pm UTC](https://forums.sketchup.com/t/rubymine-debugger-connection-to-sketchup-mysteriously-stops-possible-fix/339957/2 "2025-09-08T21:56:08Z")

</div>

~~I do not see a release for SketchUp versions running Ruby 3.2~~ :

UPDATE - OK it now appears that the 2024 Debugger release is **mislabeled** “with Ruby 2.2”.

**It should read “with Ruby 3.2”.**

> **[Releases · SketchUp/sketchup-ruby-debugger](https://github.com/SketchUp/sketchup-ruby-debugger/releases)**
>
> Ruby API debugger for SketchUp 2014 and later. Contribute to SketchUp/sketchup-ruby-debugger development by creating an account on GitHub.

Did you have to build it yourself ?

---

<div class="post-metadata">

**Author:** ![adamvs](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@adamvs](https://forums.sketchup.com/u/adamvs)\
**Post date:** [September 9, 2025, 3:22pm UTC](https://forums.sketchup.com/t/rubymine-debugger-connection-to-sketchup-mysteriously-stops-possible-fix/339957/3 "2025-09-09T15:22:31Z")

</div>

@DanRathbun

No, I didn’t build it, and I’m not sure how I got 3.2.2. It was a few months ago, maybe rmv?

I am having an issue with RubyMine not expanding data types in the Threads & Variable pane maybe I have a ruby versions out of sync. Thanks I’ll take a look.

so SU25 uses ruby 2.2?

EDIT:

I did download the latest sketchup-ruby-debugger-1.5.0.0.tar. In ‘ThirdParty/lib/Mac/Ruby.framework/Versions’ it does have a ‘3.2.2’ folder. I tried to build it in Xcode, but it fails on an ifdef in integral\_wrapper.hpp:

 ![Screenshot 2025-09-09 at 8.58.47 AM](https://global.discourse-cdn.com/sketchup/original/3X/7/7/777e911f58be823a5178b445828cf13253912e61.jpeg)

soooo down the rabbit hole. I don’t know what to do about this.

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [September 9, 2025, 8:18pm UTC](https://forums.sketchup.com/t/rubymine-debugger-connection-to-sketchup-mysteriously-stops-possible-fix/339957/4 "2025-09-09T20:18:13Z")

</div>

> [@adamvs](#):
>
> so SU25 uses ruby 2.2?

**NO** SketchUp 2025 comes with Ruby 3.2.2.

## UPDATE

OK it now appears that the 2024 Debugger release is **mislabeled** “with Ruby 2.2”.

**It should read “with Ruby 3.2”.**

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [September 9, 2025, 8:37pm UTC](https://forums.sketchup.com/t/rubymine-debugger-connection-to-sketchup-mysteriously-stops-possible-fix/339957/5 "2025-09-09T20:37:14Z")

</div>

Another post in another Rubymine debugger issue indicates use a different port than 7000:

> [@Jet Brain RubyMine 2023 Remote Debug](https://forums.sketchup.com/t/jet-brain-rubymine-2023-remote-debug/264000/3):
>
> New infos relative to Mac M1 versions. Usually the Sketchup APP crash when loaded into the remote debug. It’s related to the lauching network port 7000 an can be solved by using the port 7354 (validated on my side with a friend working on a Mac M1) : Thanks to Ruggiero Guida !

---

<div class="post-metadata">

**Author:** ![slbaumgartner](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/slbaumgartner/32/7302_2.png) [@slbaumgartner](https://forums.sketchup.com/u/slbaumgartner)\
**Post date:** [September 9, 2025, 9:00pm UTC](https://forums.sketchup.com/t/rubymine-debugger-connection-to-sketchup-mysteriously-stops-possible-fix/339957/6 "2025-09-09T21:00:54Z")

</div>

Yes, it is known that the debug api will crash or hang if you use port 7000 on Mac. You can use any other port that is not already claimed by some other app or daemon or reserved for system use. I use 7777.
