Debugger doesn't start

Hi,

I'm using RubyMine 3.0 with Rails 3.0.x and Ruby 1.9.x on Linux 10.10. I have created a very basic project so I can go through all of your Help (yes, I am RTFM'ing ;)) to see how the new version works. (I've been a customer for years and LOVE your IDE - thanks!)

I had the debugger working during the first couple of days, but now it no longer fires up. Instead I get the following error message on a pop-up dialog box. The default-to-connect time is 10 seconds. The message suggested upping that value so I changed it to 30 seconds and it stilldidn't work.

The message is below. I don't know what the deal is with the "RecordNotFound" message; the app runs fine in Development Mode.

Thanks,
Larry

================================================

Trying to send a command [start] to non-started or finished proxy (debuggee: RubyDebugTarget@1909112291[baseDir: null, debuggedFile: /home/larry/RubymineProjects3/stupidtuesday/script/rails, port: 60780], output:

Error Output:
Fast Debugger (ruby-debug-ide 0.4.15, ruby-debug-base 0.11.25.jb2) listens on 127.0.0.1:60780
Starting command read loop
Processing: catch ActiveRecord::RecordNotFound
Evaluating ActiveRecord::RecordNotFound.is_a?(Class) with timeout after 10 sec
Exception in DebugThread loop: private method `binding' called for #<Debugger::ControlState:0x000000022956d8>
Backtrace:
/home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/command.rb:130:in `rescue in debug_eval'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/command.rb:121:in `debug_eval'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/commands/catchpoint.rb:22:in `execute'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/processor.rb:37:in `block in process_commands'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/processor.rb:35:in `catch'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/processor.rb:35:in `process_commands'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug-ide.rb:140:in `block in start_control'

Please try increasing timeout in Settings | Debugger | Ruby | Debug connection timeout

13 comments
Comment actions Permalink

Hello Larryh,

Does this happen on a regular basis on a single project? Or all your projects are affected?

Regards,
Oleg

0
Comment actions Permalink

Hi Oleg,

I have only one project, and, like I said, it's a real simple one because I'm just using it to put the new version of RubyMine through its paces.

I have a 64-bit desktop and 32-bit laptop that I am keeping in snych; both run Ubuntu 10.10. A few days ago the debuggers worked fine on both machines. Now it just works on the laptop.

The only thing I have done differently on the desktop is to use the Rails scaffold generator to make one model with 2 simple attributes (first and last name strings). I ran the migration and the scaffolding app works fine when I run it in Development Mode. However, when I run the debugger I consistently get the same message, even after re-starting RubyMine a few times.

Thanks,
Larry

0
Comment actions Permalink

Thats sounds rather stange, have you tried removing ruby-debug related gems from command line and allowed RubyMine to install them automatically for you?

Regards,
Oleg

0
Comment actions Permalink

Hi Oleg,

The ruby debug gems were originally installed by the IDE, but I followed your advice and deleted them and then tried running the debugger again. It informed me the gems were missing and asked me if I wanted it to install them. I replied 'yes' and it installed the same gems that I had just deleted, specifically:

ruby-debug-ide-0.4.15
ruby-debug-base19-0.11.24
ruby-debug-base19-0.11.25.jb2

Then it tried to connect and I still got an error, which I have included below. Is there some other log file I can send your way? Like I said, the debugger used to work, and now it doesn't. I even deleted the simple model/migration/views/controllers I created so that I could go through your HELP doc with some actual code to use for the examples, so now I am left with nothing but a one-page site - and it still doesn't work. (Not sure if that makes a difference or not. I guess the point is that I don't have a whole lot of complex stuff running that might be screwing it up.)

BTW, here is the output from the "Console" window:
======================================
/home/larry/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/bin/rdebug-ide --debug --port 50226 -- /home/larry/RubymineProjects3/stupidtuesday/script/rails server thin -p 3000 -b 0.0.0.0 -e development

Process finished with exit code 1
======================================

I hope you can help me, as the debugger is invaluable.

Thanks,
Larry

ERROR MESSAGE AFTER FAILS TO CONNECT:
======================================
Trying to send a command [start] to non-started or finished proxy (debuggee: RubyDebugTarget@569537377[baseDir: null, debuggedFile: /home/larry/RubymineProjects3/stupidtuesday/script/rails, port: 50226], output:

Error Output:
Fast Debugger (ruby-debug-ide 0.4.15, ruby-debug-base 0.11.25.jb2) listens on 127.0.0.1:50226
Starting command read loop
Processing: catch ActiveRecord::RecordNotFound
Evaluating ActiveRecord::RecordNotFound.is_a?(Class) with timeout after 10 sec
Exception in DebugThread loop: private method `binding' called for #<Debugger::ControlState:0x00000001dd8000>
Backtrace:
/home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/command.rb:130:in `rescue in debug_eval'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/command.rb:121:in `debug_eval'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/commands/catchpoint.rb:22:in `execute'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/processor.rb:37:in `block in process_commands'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/processor.rb:35:in `catch'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/processor.rb:35:in `process_commands'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug-ide.rb:140:in `block in start_control'

Please try increasing timeout in Settings | Debugger | Ruby | Debug connection timeout

0
Comment actions Permalink

Hello again,

I just upgraged to RubyMine 3.0.1 and when I started the debugger it said the 'ruby-debug-base19' gem needed to be updated, so I clicked 'yes' to that. Upgrading both RubyMine and a debugger gem *really* had me crossing my fingers when I fired up the debugger...

But it still didn't work. Once again I increased the timeout to 30 seconds and still no dice. The output is below. Also, I now have both the older ruby-debug-base19-0.11.25.jb2 and newer ~~~.jb3 versions of the gem. Can I delete the ~~~.jb2 version?

Can someone please help me on this? The debugger is an essential part of your IDE and the development process.

Thanks,
Larry

=================== Console ============================

/home/larry/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/bin/rdebug-ide --debug --port 49034 -- /home/larry/RubymineProjects3/stupidtuesday/script/rails server thin -p 3000 -b 0.0.0.0 -e development

Process finished with exit code 1

================== Error Message =========================

Trying to send a command [start] to non-started or finished proxy (debuggee: RubyDebugTarget@1884925438[baseDir: null, debuggedFile: /home/larry/RubymineProjects3/stupidtuesday/script/rails, port: 49034], output:

Error Output:
Fast Debugger (ruby-debug-ide 0.4.15, ruby-debug-base 0.11.25.jb3) listens on 127.0.0.1:49034
Starting command read loop
Processing: catch ActiveRecord::RecordNotFound
Evaluating ActiveRecord::RecordNotFound.is_a?(Class) with timeout after 10 sec
Exception in DebugThread loop: private method `binding' called for #<Debugger::ControlState:0x000000019d7500>
Backtrace:
/home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/command.rb:130:in `rescue in debug_eval'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/command.rb:121:in `debug_eval'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/commands/catchpoint.rb:22:in `execute'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/processor.rb:37:in `block in process_commands'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/processor.rb:35:in `catch'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug/processor.rb:35:in `process_commands'
  from: /home/larry/.rvm/gems/ruby-1.9.2-p0@stuptues/gems/ruby-debug-ide-0.4.15/lib/ruby-debug-ide.rb:140:in `block in start_control'

Please try increasing timeout in Settings | Debugger | Ruby | Debug connection timeout

0
Comment actions Permalink

Just wanted to let people know that I started my project completely over and proceeded to reconstruct the entire thing piecemeal, starting and stopping the debgger at every step I took. I was hoping to find "the one thing" that made it start barfing, but so far it's working like a charm. Only have a few things left to do, and will continue with the same start/stop process.

If I find something I will post it as a 'Reply' to this post => if you don't see anything more you can assume that the problem has been (mysteriously) resolved.

Just wanted to give you a heads-up on my status because I know you guys must have a lot on your plates and I didn't want anyone wasting time on this while I was sleeping (and you were awake and working ;-)

Thanks,
Larry

0
Comment actions Permalink

Hello larryh,

Thanks a lot for reporting this, as far as we are still working on ruby-debug related gems we will probably update them yet another time we will definitely test it properly to work out of the box in RubyMine 3.1.

Regards,
Oleg

0
Comment actions Permalink

I've been a happy user of RubyMine for a couple of months now. I switched over from Netbeans when I started having problems using the debugger with RoR 3.0 projects. RubyMine was fantastic. The debugger was working without any problems.

However, about 1 month ago, RubyMine stopped being able to connect to the debugger. I'd say this started happening once I upgraded to RM 3.0.1 but I can't be 100% sure. Today I tried the latest EAP but it also can't connect to the debugger.

I've tried to gem uninstall all debug related gems and let RM install them. Same problem. Increasing the timeout does not help either.

Environment:

OS X 10.6
ruby 1.9.2p0
Rails 3.0.3
rvm 1.2.4

I've also tried created a new RoR application via RM. The debugger still can't connect.

Any clues?

I hope a rapid solution can be found to not being able to debug. It is like trying to code w/o using your fingers!

I'm not sure this is relevant but RM reports that several gems are missing/not attached. Running bundler from the command line reports no such issue, the gems are there. If I tell RM to install/attach them nothing really seems to happen. The message remains that they aren't attached.In the Gemfile these are all gems specified with a local path, i.e., :path => 'vendor/engines'.

Conole output:
/Users/john/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/john/.rvm/gems/ruby-1.9.2-p0@kantox/gems/ruby-debug-ide-0.4.15/bin/rdebug-ide --debug --port 56807 -- /Library/WebServer/Documents/kantoxweb/script/rails server mongrel -p 3000 -b 0.0.0.0 -e development

Process finished with exit code 143

0
Comment actions Permalink

I ran into the same symptoms in the latest RubyMine 3.2.4 on Mac. The debugger was working fine and then it stopped working. Restarting the IDE and reinstalling the debug gems didn't help. I believe what happened is that before the debugger started to fail, I added a ruby exception breakpoint. After removing it, debugging started to work again. So I think the bug may be in the ruby-debug-ide or related gem barfing on exception breakpoints.

Fast Debugger (ruby-debug-ide 0.4.17.beta8, ruby-debug-base 0.10.5.jb2) listens on 127.0.0.1:64953 Exception in DebugThread loop: private method `binding' called for #<Debugger::ControlState:0x1005db488> Backtrace: /Users/edwingo/.rvm/gems/ruby-1.8.7-p302@junction/gems/ruby-debug-ide-0.4.17.beta8/lib/ruby-debug/command.rb:130:in `debug_eval'   from: /Users/edwingo/.rvm/gems/ruby-1.8.7-p302@junction/gems/ruby-debug-ide-0.4.17.beta8/lib/ruby-debug/commands/catchpoint.rb:22:in `execute'

...
0
Comment actions Permalink

Edwin, do you have ruby-debug gem in your gemfile? Does it work if you remove it from the gemfile?

0
Comment actions Permalink

Not that I know of. I am using RVM and am using these gems:

ruby-debug-base (0.10.5.jb2)
ruby-debug-ide (0.4.17.beta8)

0
Comment actions Permalink

Please try updating ruby-debug-base via gem install ruby-debug-base --pre and see if the problem persists.

0
Comment actions Permalink

Thanks, I will try the --pre version the next time I debug.

0

Please sign in to leave a comment.