Cannot connect to debugger

Hi,

First of all, RubyMine is awesome, thanks guys!

I'm using #472, Ruby 1.8.7, Rails 2.1.2.  When I start the debugger for rspec tests, I got an error message:

Cannot connect to the debugged process in 10s:

Error Output:
/Users/zlu/.gem/ruby/1.8/gems/linecache-0.43/lib/../ext/trace_nums.bundle: [BUG] Bus Error
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.5.0]

I have reinstalled linecache and doesn't make any difference.  Am I missing something?

Also I'm not able to debug a single example (when I used to be able to debug).

Zhao

5 comments
Comment actions Permalink

Hi zhao,

Which versions of  "ruby-debug-ide", "ruby-debug-base", "ruby-debug", "columnize" gems do you use? Also I am not sure that ruby-debug gems correctly works with ruby 1.8.7.

0
Comment actions Permalink

Thanks for your reply.  Here's what I have installed:

zlu-macbook:g zlu$ gem list -l ruby

*** LOCAL GEMS ***

ruby-debug (0.10.3, 0.10.2)
ruby-debug-base (0.10.3, 0.10.2)
ruby-debug-ide (0.4.2)
rubyforge (1.0.1, 1.0.0)
zlu-macbook:g zlu$ gem list -l col

*** LOCAL GEMS ***

columnize (0.2)

==========================================
I can try to rollback to ruby 1.8.6 to see if that works.
Do you have any insight to my problem of not being able to debug an individual rspec example?  I have to run the whole test file, which is a waste.

0
Comment actions Permalink

Zhao,

I can try to rollback to ruby 1.8.6 to see if that works.


I've have both ruby 1.8.7 and 1.8.6 interpreters installed on my mac thus I can check your problem with  debugger

Do you have any insight to my problem of not being able to debug an individual rspec example?  I have to run the whole test file, which is a waste.

Oh, I didn't notice that rspec allows to execute single example. I've created issue in JIRA - http://www.jetbrains.net/jira/browse/RUBY-2389. We will try to implement this feature in the nearest future.

0
Comment actions Permalink

Hi, I got same error in IDEA with Ruby plugin (not using RubyMine) when I run rspec-test


/User/Yen/.gem/ruby/1.8/gems/linecache-0.43/lib/../ext/trace_nums.bundle: [BUG] Bus Error
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9]
Empty test suite.



 



My gems are:

*** LOCAL GEMS ***

ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
ruby-debug-ide (0.4.6)



 

What was the problem cause the error? How did you resolve it?
It has been a while since last time you said that you are "not sure that ruby-debug gems correctly works with ruby 1.8.7". Has it not be fixed yet?!

Yen

0
Comment actions Permalink

Hello Yen,

"Bus error" means a native crash in the linecache gem. You should report
this problem to the gem author.

Hi, I got same error in IDEA with Ruby plugin (not using RubyMine)
when I run rspec-test

/User/Yen/.gem/ruby/1.8/gems/linecache-0.43/lib/../ext/trace_nums.bund
le: Bus Error
ruby 1.8.7 (2009-06-12 patchlevel 174)
Empty test suite.
My gems are:

      • LOCAL GEMS ***


ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
ruby-debug-ide (0.4.6)
What was the problem cause the error? How did you resolve it?

It has been a while since last time you said that you are "not sure
that ruby-debug gems correctly works with ruby 1.8.7". Has it not be
fixed yet?!

Yen

---
Original message URL:
http://www.jetbrains.net/devnet/message/5242178#5242178

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.