Debugger not working in Ruby 1.9.3

Hi,

As always, first things first: Thanks for a fantastic product!

Now for the whining and complaining ;)...

I recently upgraded to Ruby 1.9.3 so I suspect that might be the reason my debugger does not start.

I am using the following:

Ruby 1.9.3
Rails 3.1.1
RubyMine 3.2.4
Ubuntu 11.04

And this is what I get when I try to fire up the debugger (which has worked fine in the past):

Cannot connect to the debugged process at port 50721 in 10s:
Error Output:
/home/larry/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/larry/.rvm/gems/ruby-1.9.3-p0@stuptues/gems/linecache19-0.5.11/lib/trace_nums19.so: undefined symbol: ruby_current_thread - /home/larry/.rvm/gems/ruby-1.9.3-p0@stuptues/gems/linecache19-0.5.11/lib/trace_nums19.so (LoadError)
    from /home/larry/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/larry/.rvm/gems/ruby-1.9.3-p0@stuptues/gems/linecache19-0.5.11/lib/tracelines19.rb:12:in `rescue in <module:TraceLineNumbers>'
    from /home/larry/.rvm/gems/ruby-1.9.3-p0@stuptues/gems/linecache19-0.5.11/lib/tracelines19.rb:8:in `<module:TraceLineNumbers>'
    from /home/larry/.rvm/gems/ruby-1.9.3-p0@stuptues/gems/linecache19-0.5.11/lib/tracelines19.rb:6:in `<top (required)>'
    from /home/larry/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/larry/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/larry/.rvm/gems/ruby-1.9.3-p0@stuptues/gems/linecache19-0.5.11/lib/linecache19.rb:69:in `<top (required)>'
    from /home/larry/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
    from /home/larry/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
    from /home/larry/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from /home/larry/.rvm/gems/ruby-1.9.3-p0@stuptues/gems/ruby-debug-base19x-0.11.30.pre4/lib/ruby-debug-base.rb:3:in `<top (required)>'
    from /home/larry/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/larry/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/larry/.rvm/gems/ruby-1.9.3-p0@stuptues/gems/ruby-debug-ide-0.4.17.beta8/lib/ruby-debug-ide.rb:5:in `<top (required)>'
    from /home/larry/.rvm/gems/ruby-1.9.3-p0@stuptues/gems/ruby-debug-ide-0.4.17.beta8/bin/rdebug-ide:17:in `require_relative'
    from /home/larry/.rvm/gems/ruby-1.9.3-p0@stuptues/gems/ruby-debug-ide-0.4.17.beta8/bin/rdebug-ide:17:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'

Any ideas?

Thanks,
Larry

0
37 comments

Oops. I meant Rails 3.1.3, although I doubt that makes a difference.

-- Larry

0

Hello Larry, thank you for warm words.
Please see comments of RUBY-9418. You should install new linecache19 gem via

curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
gem install linecache19-0.5.13.gem

And then ruby-debug-base19x via
gem install --pre ruby-debug-base19x
0

Hey Dennis,

Your instructions worked like a charm - thanks a lot! (Especially responding over the weekend :))

I did search the forums before asking but did not find anything; have to get in the habit of searching the bug base, too.

Thanks again,
Larry

0

Hi, this solution did not work for me:

~/app> gem install linecache19-0.5.13.gem

Building native extensions.  This could take a while...

gem install --pre ruby-debug-base19x

ERROR:  Error installing linecache19-0.5.13.gem:

 ERROR: Failed to build gem native extension.

        /usr/share/ruby-rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb

checking for vm_core.h... no

/usr/share/ruby-rvm/gems/ruby-1.9.3-p125/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39: Use RbConfig instead of obsolete and deprecated Config.

checking for vm_core.h... no

*** extconf.rb failed ***


Env:

~/app> which ruby
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p125/bin/ruby
~/app> which rvm
/usr/share/ruby-rvm/bin/rvm
~/app> ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]


I've been fighting this linecache issue quite a bit today. Frustrating. My console will start but my server will not.
0

I have both gems listed in this message but still get the dialog that it cannot connect..    My debugging was fine a few days ago.. I updated from rails 3.0.7 to rails 3.2.2 and ran a bundle update so likely something else got updated that I didn't notice..    I thought I had debugged the other day but possble I am confusing my days. :-)    at any rate. .I had a bunch of debug gems installed so I uninstalled them all and reinstalled the latest and still get the issue..    

I'm on
Ruby 1.9.2-p180
Rvm
Osx Lion
RubyMine 4.0.3 (from april '12)

Debug gems as displayed from bundler

Using linecache19 (0.5.13)
[...]
Using ruby-debug-base19 (0.11.25)
Using ruby-debug-base19x (0.11.30.pre10)
Using ruby-debug-ide (0.4.17.beta14) from git://github.com/ruby-debug/ruby-debug-ide.git (at master) with native extensions
Using ruby-debug19 (0.11.6)


I do have another version of base19x installed (0.11.29) but my GemFile lists the one from the above message..

any thoughts would be greatly appreciated.  
0
Avatar
Oleg Sukhodolsky

It looks like you also have ruby-debug19, we do not need it for debugging, and usually debug gems conflict to each other.
Try to remove it and see if it helps.

Regads, Oleg.

0

oleg.sukhodolsky wrote:
It looks like you also have ruby-debug19, we do not need it for debugging, and usually debug gems conflict to each other.
Try to remove it and see if it helps.

I uninstalled ruby-debug19 leaving me with:

gem list | grep debug
ruby-debug-base19 (0.11.25)
ruby-debug-base19x (0.11.30.pre10, 0.11.29)
ruby-debug-ide (0.4.16)


I restarted RubyMine and tried the debugger in RubyMine and get the usual timeout error....

Error Output:
Fast Debugger (ruby-debug-ide 0.4.17.beta14, ruby-debug-base 0.11.30.pre10) listens on 127.0.0.1:59729



Thanks!
Gary
0
Avatar
Oleg Sukhodolsky

please also remove ruby-debug-base19.

Regards, Oleg.

0

still the same error.    will try again after updating to Rubymine 4.5..

0

I am having the same issue on OSX 10.7.4 with RubyMine 4.0 and 4.5 rvm 1.13.0,  Ruby 1.9.3-p194 and Rails 3.2.6. When i try to debug, I get the following error:


Cannot connect to the debugged process at port 62338 in 10s:

Error Output:
/Users/todd/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- ruby_debug (LoadError)
 from /Users/todd/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
 from /Users/todd/.rvm/gems/ruby-1.9.3-p194@rails-3.2/gems/ruby-debug-base19x-0.11.30.pre10/lib/ruby-debug-base.rb:1:in `'
 from /Users/todd/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
 from /Users/todd/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
 from /Applications/RubyMine.app/rb/gems/debug_preloader.rb:1:in `'
 from /Users/todd/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
 from /Users/todd/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'



Here is the gem list:

*** LOCAL GEMS ***

actionmailer (3.2.6)
actionpack (3.2.6)
activemodel (3.2.6)
activerecord (3.2.6)
activeresource (3.2.6)
activesupport (3.2.6)
archive-tar-minitar (0.5.2)
arel (3.0.2)
autotest (4.4.6)
bcrypt-ruby (3.0.1)
bootstrap-sass (2.0.4.0)
builder (3.0.0)
bundler (1.1.4)
cancan (1.6.8)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
columnize (0.3.6)
crack (0.3.1)
devise (2.1.2)
devise-encryptable (0.1.1)
diff-lcs (1.1.3)
erubis (2.7.0)
execjs (1.4.0)
factory_girl (3.2.0)
factory_girl_rails (3.2.0)
ffi (1.1.0, 1.0.11)
hike (1.2.1)
i18n (0.6.0)
journey (1.0.4)
jquery-rails (2.0.2)
json (1.7.3)
linecache19 (0.5.13)
mail (2.4.4)
mime-types (1.19)
multi_json (1.3.6)
mysql2 (0.3.11)
orm_adapter (0.4.0)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.6)
railties (3.2.6)
rake (0.9.2.2)
rdoc (3.12)
rolify (3.1.0)
rspec (2.11.0, 2.7.0)
rspec-core (2.11.1, 2.7.1)
rspec-expectations (2.11.1, 2.7.0)
rspec-mocks (2.11.1, 2.7.0)
rspec-rails (2.11.0, 2.7.0)
ruby-debug-base19x (0.11.30.pre10)
ruby-debug-ide (0.4.17.beta14)
ruby_core_source (0.1.5)
rubygems-bundler (1.0.2)
rvm (1.11.3.3)
sass (3.1.20)
sass-rails (3.2.5)
simple_form (2.0.2)
sprockets (2.1.3)
test-unit (2.5.1)
thor (0.15.4)
tilt (1.3.3)
treetop (1.4.10)
typhoeus (0.4.2)
tzinfo (0.3.33)
uglifier (1.2.6)
warden (1.2.1)
will_paginate (3.0.3)
ZenTest (4.8.1)

Message was edited by: Todd Nash

0

I get the same error.

Soon this thread will be a year old.

How pathetic is it that debugging still doesn't work??  

Guess I'll find some other way to debug my code.  Sad.

0

This problem looks like some installation issue. Could you please try uninstalling ruby-debug-base19x and installing it again (gem install ruby-debug-base19x --pre) from the command line?

0

No.  Respectfully, I'm not gonna do this.  I already tried this.

I already wasted tons of time trying to get this core feature of your product to work.

This has been broken since last fall.  I'm done wasting my time with half-assed fixes based on voodoo and folklore.

Sending your users on a wild goose chase is a lazy approach to customer support.

You should take this issue seriously and just make it work.

0

Andy,
unfortunately, I'm not able to reproduce this problem. Could you please attach output of gem contents ruby-debug-base19x?

0

I'm having the same issues and can't get the debugger to work.  What's really frustrating (besides just spending hours on this and it's still not working) is that it worked earlier today, until I had to stop the debugger and it rescanned and found missing gems.  Now I have to start all over trying to get debugger to work.  You really really need to fix this!  Here are the contents of my ruby-debug-base19x gem:


C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/AUTHORS
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/CHANGES
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/LICENSE
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/README
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/Rakefile
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/ext/ruby_debug/Makefile
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/ext/ruby_debug/breakpoint.c
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/ext/ruby_debug/breakpoint.o
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/ext/ruby_debug/extconf.rb
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/ext/ruby_debug/mkmf.log
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/ext/ruby_debug/ruby_debug-i386-mingw32.def
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/ext/ruby_debug/ruby_debug.c
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/ext/ruby_debug/ruby_debug.h
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/ext/ruby_debug/ruby_debug.o
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/ext/ruby_debug/ruby_debug.so
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/lib/ChangeLog
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/lib/ruby-debug-base.rb
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.
pre10/lib/ruby_debug.so



I have tried all the steps indicated so far to no avail (though somehow, in the past, I was able to get it to work).  Now, no such luck with both RubyMine 4.0.3 and RubyMine 4.5

I feel like crying - all I want to do is code - not spend HOURS trying to get debugger to work...

Here's the rest of my data, if it will help....


gem list | grep debug
ruby-debug-base19x (0.11.30.pre10)
ruby-debug-ide (0.4.17.beta14)


At one point it looked like this but it didn't seem to make a difference:

gem list | grep debug
ruby-debug-base19x (0.11.30.pre10)
ruby-debug-ide (0.4.17.beta14, 0.4.17.beta9)
ruby-debug-ide19 (0.4.12)


After bundle update:

Fetching gem metadata from https://rubygems.org/........
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.6)
Using activesupport (3.2.5)
Using builder (3.0.0)
Using activemodel (3.2.5)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.5)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.5)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.5)
Using activeresource (3.2.5)
Using addressable (2.3.2)
Using archive-tar-minitar (0.5.2)
Using bcrypt-ruby (3.0.1)
Using bootstrap-sass (2.0.4.0)
Using bundler (1.1.5)
Using cancan (1.6.8)
Using nokogiri (1.5.5)
Using ffi (1.1.2)
Using childprocess (0.3.4)
Using libwebsocket (0.1.5)
Using rubyzip (0.9.9)
Using selenium-webdriver (2.25.0)
Using xpath (0.1.4)
Using capybara (1.1.2)
Using carmen (1.0.0.beta2)
Using rack-ssl (1.3.2)
Using json (1.7.4)
Using rdoc (3.12)
Using thor (0.15.4)
Using railties (3.2.5)
Using rails (3.2.5)
Using carmen-rails (1.0.0.beta3)
Using client_side_validations (3.0.13)
Using coffee-script-source (1.3.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using coffee-rails (3.2.2)
Using columnize (0.3.6)
Using diff-lcs (1.1.3)
Using gherkin (2.11.1)
Using cucumber (1.2.1)
Using cucumber-rails (1.3.0)
Using database_cleaner (0.8.0)
Using orm_adapter (0.4.0)
Using warden (1.2.1)
Using devise (2.1.2)
Using rspec-core (2.11.1)
Using rspec-expectations (2.11.2)
Using rspec-mocks (2.11.1)
Using rspec (2.11.0)
Using email_spec (1.2.1)
Using factory_girl (3.5.0)
Using factory_girl_rails (3.5.0)
Using jquery-rails (2.0.2)
Using launchy (2.1.1)
Using ruby_core_source (0.1.5)
Using linecache19 (0.5.13)
Using pg (0.14.0)
Using pg_search (0.5)
Using rolify (3.1.0)
Using rspec-rails (2.11.0)
Using ruby-debug-base19x (0.11.30.pre10)
Using ruby-debug-ide (0.4.17.beta14)
Using sass (3.1.20)
Using sass-rails (3.2.5)
Using uglifier (1.2.6)


Everytime I try to start debugger, I get the following message: "Error running Development: [sitename]: Cannot start debugger.  Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist.

When I'm prompted to install missing gem files in RubyMine, I do and get the same error again:  "Error running Development: [sitename]: Cannot start debugger.  Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist as well as the RubyMine Gem Manager RubyMine has detected that some of the gems required for [sitename] are not installed and I'm given the link to Install missing gems (which will produce the same error).

When I look here, I see that the gems are there:


C:\Program Files (x86)\JetBrains\RubyMine 4.5\rb\gems>dir
Volume in drive C is OS
Volume Serial Number is 008E-DBB0

Directory of C:\Program Files (x86)\JetBrains\RubyMine 4.5\rb\gems

07/25/2012  01:44 PM    <DIR>          .
07/25/2012  01:44 PM    <DIR>          ..
07/17/2012  07:20 AM                50 debug_preloader.rb
07/17/2012  07:20 AM                16 javascript_libraries.txt
07/17/2012  07:20 AM            96,768 rcov-0.9.9.jb-java.gem
07/17/2012  07:20 AM            75,264 ruby-debug-base-0.10.5.jb2-x86-mswin32.ge
m
07/17/2012  07:20 AM            66,560 ruby-debug-base-0.10.5.rc1-java.gem
07/17/2012  07:20 AM            35,328 ruby-debug-base-0.10.5.rc1.gem
07/17/2012  07:20 AM            43,008 ruby-debug-base19x-0.11.30.pre10.gem
07/17/2012  07:20 AM            34,816 ruby-debug-ide-0.4.17.beta14.gem
07/17/2012  07:20 AM               315 rubymine_passenger_debug.rb


I used this to install linecache:

curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
gem install linecache19-0.5.13.gem



I have tried to close and restart RubyMine multiple times.

After 6 hours of this, can you help please.  What else can I try?

Message was edited by: sigal holdeman


UPDATE July 30, 2012

OK - many hours later, it turned out that restarting RubyMine wasn't enough but restarting my computer seemed to fix this.

0

Looks like your problem is a bit different from Todd and Andy have. Could you please attach your idea.log file?
I'm going to remove linecache19 dependency in the next ruby-debug-base19x version to resolve some of installation problems

0

File attached....



Attachment(s):
idea.log.zip
0

Here's some info that nobody has posted in this thread...

RubyMine tries to start the debugger on a random port, and then trys to listen on a static port:


Fast Debugger (ruby-debug-ide 0.4.17.beta14, ruby-debug-base 0.11.29) listens on 127.0.0.1:50101

=> Booting WEBrick

=> Rails 3.2.1 application starting in development on http://0.0.0.0:3000

=> Call with -d to detach

=> Ctrl-C to shutdown server

Exiting

Uncaught exception: could not connect to server: Connection refused

 Is the server running on host "localhost" (127.0.0.1) and accepting

 TCP/IP connections on port 5432?


Any ideas about a rampant port?
0

With 3,000+ views, this is one of the more popular threads. I have probably contributed a hundred of those views myself as I periodically re-visit this topic. :)

Today I was getting debugger crashes because xml_printer.rb did not have an `is_binary_data` method.  This post, http://archimedesnewton.com/2012/05/30/installing-ruby-debug-ide19-on-ruby-1-9-3-p125-from-railsinstaller-2-1-0/ from an Aptana user got me back into debug mode.

I must say, being able to look at the debugger console, click on the offending file name (xml_printer.rb) and paste in the monkeypatch* is quite convenient.  Thanks, JetBrains!

class String
  def is_binary_data?
    ( self.count( "^ -~", "^\r\n" ).fdiv(self.size) > 0.3 ||
      self.index( "\x00" ) ) unless empty?
  end
end
0
Avatar
Andrey Agra de Andrade

hi guys, have tried everything you have described above, but still can not debug...

see that the error happens:
ErroDebugRubyMine.jpg

My gemfile is as follows:
gemfile.jpg


I've followed all the guidelines of the thread in other sites (http://stackoverflow.com/questions/10323119/cannot-load-such-file-script-rails-getting-this-error-while-remote-debuggin/10325110#10325110  and http://stackoverflow.com/questions/11910665/trying-to-debug-ruby-1-9-3p194-rails-3-2-7), yet still gives the error.
I use OSX 1.8.2, Ruby 1.9.3-p194 and Rails 3.2.8.


Please, I need your help urgently.


Thanks.

0

Andrey,
you can try removing all debug related gems from Gemfile and installing attached version. It does not have linecache dependency, so it should work well in your case



Attachment(s):
ruby-debug-base19x-0.11.30.pre10.gem.zip
0
Avatar
Andrey Agra de Andrade

Hi Dennis,

Thanks for your reply.

I did what you said, but RubyMine requires me to download the ruby-debug-ide and linecache (actually it downloads automatically) ... so low, generate the error again.

0
Avatar
Andrey Agra de Andrade

Dennis,

Do you not have any other suggestions?

I do not know what else to do and need to resolve this, with some haste.

Please. :_| :( :8}

0

I'm suffering from this damn problem too. Tried so many things. I'm on a Mac, OS 10.7.4, RubyMine 4.5.4, Ruby 1.9.3-p194. Here's the stupid log from this stupid thing:


/Users/ladlestein/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/ruby-debug-ide-0.4.16/bin/rdebug-ide --port 51440 -- /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/bin/rspec /Users/ladlestein/trr/real-server/spec/models/auspient_import_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example "Auspient importer on import files reports the right errors"
Testing started at 8:37 PM ...
Fast Debugger (ruby-debug-ide 0.4.16, ruby-debug-base 0.11.30.pre10) listens on 127.0.0.1:51440
/Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/debugger-1.2.0/lib/ruby_debug.bundle: warning: already initialized constant VERSION
/Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/debugger-1.2.0/lib/ruby-debug/interface.rb:128:in `<module:Debugger>': superclass mismatch for class RemoteInterface (TypeError)
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/debugger-1.2.0/lib/ruby-debug/interface.rb:1:in `<top (required)>'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/debugger-1.2.0/lib/ruby-debug/processor.rb:1:in `<top (required)>'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/debugger-1.2.0/lib/ruby-debug.rb:6:in `<top (required)>'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
 from /Users/ladlestein/.rvm/gems/ruby-1.9.3-p194/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'


-larry
0

Ah, it works, once I remove "gem debugger" from the Gemfile.

"rails new" writes that to the Gemfile. So this is hard to make work. I wish you guys would make it work the first time, for the next time I create a Rails project and forget this and spend god-knows-how-much time screwing around with it until I remember that I have to comment that out.

0
Avatar
Peter Swietoslawski

Here is a tip from StackOverflow that helped me http://stackoverflow.com/a/11075890

0

This worked for me too.  Pls add to next version.

also, before the fix, the error panel was extending below bottom of page of my 15' macbook pro.  found no way to close it so had to kill rmine and restart.  you might want to fix this too.

0

Please see my answer here: http://stackoverflow.com/a/14677706/134077

Basically the only way I could get this to work was by enabling access to my ~/.rvm folder and letting RubyMine do its thing. I also installed rvm with the clang compiler flag. Here are my relevant gem versions using RubyMine 4.5.4

Using ruby-1.9.3-p374

archive-tar-minitar (0.5.2)
columnize (0.3.6)
linecache19 (0.5.13, 0.5.12)


ruby-debug-base19x (0.11.30.pre10)
ruby-debug-ide (0.4.17.beta14)
ruby_core_source (0.1.5)

0

this is getting really frustrating.     I only switched from VIM to Rubymine for the debugger and since upgrading to the supported version of ruby 1.9.* I can't debug anything..     Just loaded up 5.0 hoping that it would work and boom..  can't connect to debuger..    tried with both 1.9.3 and 1.9.2 with the following gems.. I'm really tired of using puts to debug.. why did I pay for this IDE?

$ gem list | grep debug
debugger-ruby_core_source (1.1.8)
ruby-debug-base19x (0.11.30.pre11)
ruby-debug-ide (0.4.17.beta16)

0

What OS are you using?

0

Please sign in to leave a comment.