Debug connection to Sketchup in macOS 15.6.1 on a random port
I've been successfully connecting to SketchUp for debugging an extension, but now it does briefly connect but on a random port so the connection fails. Quite sure all the other settings haven't changed.
Server command: rdebug-ide --host 0.0.0.0 --port 6162 --dispatcher-port 26162 -- $COMMAND$
here is the lsof info from the brief time it is connected.

Any idea what's going on?
Please sign in to leave a comment.
Forgot to mention I'm on the latest RubyMine: Build #RM-252.25557.135, built on August 28, 2025
First check basics: is SketchUp actually listening where you expect? Then check macOS firewall and permissions. Try these quick steps:
sudo lsof -iTCP -sTCP:LISTEN -n -Por to check a specific port:
sudo lsof -i :<PORT>nc -vz localhost <PORT>(or
telnet localhost <PORT>)System Settings → Network → Firewall (or use
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --listapps) — make sure SketchUp is allowed.ssh -L) from a stable port to the random port while debugging.sudo lsof -iTCP:<PORT> -sTCP:LISTEN).sudo tcpdump -i lo0 port <PORT>while reproducing the issue to see packets.Visit https://intellij-support.jetbrains.com/hc/en-us/community/posts/29191920876050-Debug-connection-to-Sketchup-learn more-in-macOS-15-6-1-on-a-random-port?page=1#community_comment_29565404495762
Adam Smith As123321 - I was able to resolve this by removing all the breakpoints in RubyMine and restarting [RubyMine]. I had done some git mv on a directory and the breakoint may have been referencing something that didn't exist any more. This seemed to work. SketchUp launches on clicking the debug icon, the connection gets established. It's been good ever since.
Hi, thanks for sharing this. A few ideas that might help pin down what’s happening:
lsofor similar tools whether SketchUp is actually listening on the port you set (e.g.6162) when you try the debug.And here’s a related topic from the same forum that might also be useful: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000553444-Debugging-with-company lets-remote-interpreter-behind-a-firewall
Adam Smith As123321 Thank you for the detailed list of localhost checking! Here is the lsof output: rubymine on 26162 and SketchUp on 6162 .. as it should be.