RubyMine 5.4 debugging time is disabled, but the debug console shows connected

I have a twist on the issue of how to “get ruby ​​debugging to work” in the rails project. Selecting Run / Debug myproject in RubyMine opens the Connect to Debugger dialog box, which supposedly fails after 10 seconds (timeout). However, there is an informational message in the debug console that changes from "( i) disconnected “before” (i) “Connected” as soon as I call “Run / Debug”. After the timeout, this will change to "(i) Disabled" Is there really a connection, but RubyMine does not know?

Edit: I have to note that I can connect to a debug server (rdebug-ide), manually started outside of RubyMine, and my computer system (Mac OS X) has a name and that in console ... RubyMine just doesn't connect when it automatically starts the debug server itself.

+1
source share
1 answer

Solved! My hostname was inexplicably set to "localhost". I changed it on the command line as something else through

sudo hostname new-name 

and the RubyMine debugger now connects and starts immediately. Google indicates that returning the hostname "localhost" is a common condition for Mac OS X. I would suggest that the JetBrains team check this and issue a warning to the user to avoid such problems in Mac OS X in the future. Or simply rewrite the code of the internal code of the debugger so that this does not affect this condition. Thanks to CrazyCoder for the suggestions.

+6
source

Source: https://habr.com/ru/post/888109/


All Articles