ruby-debug / ruby-debug-ide

An interface which glues ruby-debug to IDEs like Eclipse (RDT), NetBeans and RubyMine.
https://www.jetbrains.com/ruby/features/ruby_debugger.html
Other
370 stars 83 forks source link

rdebug-ide is getting stuck when executing `notify_dispatcher_if_needed` #235

Open alir2t2 opened 1 year ago

alir2t2 commented 1 year ago

When trying to debug my Rails app using Unicorn server, rdebug-ide getting stuck here indefinitely. To overcome this I have added a work around like this.

dispatcher_answer = s.gets.chomp # rdebug-ide is getting stuck here
dispatcher_answer = "true" # replaced socket.gets with true.

Here is my machines details:

Debian jessie: v8.11
ruby-debug-ide: v0.7.3
Ruby: v2.6
Rails: v4.2
Unicorn:  v5.6.0

What I assume from the code Socket.gets.chomp Read lines from from dispatcher port ex:9500. I did not understood why it is getting stuck there while reading from dispatcher port. Is this a bug or I am missing something?