0

How to configure debugger with Ruby 1.9.3-p125

Hi,

I'm trying to use debugger with rspec with following version of software:
  rails 3.2.1
  rvm (stable 1.10.2)
  ruby 1.9.3-p125
  MacOS X 10.7.3, Xcode 4.3

Now, I figured out a configuration to run "rails console --debugger" with information I've gotten from:
  http://stackoverflow.com/questions/6438116/rails-with-ruby-debugger-throw-symbol-not-found-ruby-current-thread-loaderro
  (I used answer refer to this gist: https://gist.github.com/1331533 )

I set a break point, and run rspec.
Unfortunately, with this configuration, rspec stop with error.

/Users/shigeya/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) "/Applications/RubyMine 4.0.1.app/rb/testing/runner/specs_in_folder_runner.rb"
Testing started at 15:06 ...
/Users/shigeya/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@aimm3/gems/ruby-debug-ide-0.4.17.beta8/bin/rdebug-ide --port 61575 -- /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@aimm3/bin/rspec --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter
<< source paths here >>
Fast Debugger (ruby-debug-ide 0.4.17.beta8, ruby-debug-base 0.11.30.pre10) listens on 127.0.0.1:61575
Work directory: /Users/shigeya/work/aimm3/}
Searching files....
=========================================
<< rspec sources here..>>
47 files were found.
=========================================
RSpec script : /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@aimm3/bin/rspec
Spec Options:
[]
=========================================
Running specs...
Command line:
["/Users/shigeya/.rvm/rubies/ruby-1.9.3-p125/bin/ruby", "-e", "at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)", "/Users/shigeya/.rvm/gems/ruby-1.9.3-p125@aimm3/gems/ruby-debug-ide-0.4.17.beta8/bin/rdebug-ide", "--port", "61575", "--", "/Users/shigeya/.rvm/gems/ruby-1.9.3-p125@aimm3/bin/rspec", "--require", "teamcity/spec/runner/formatter/teamcity/formatter", "--format", "Spec::Runner::Formatter::TeamcityFormatter",
<< SPEC PATHS >> ]
dyld: lazy symbol binding failed: Symbol not found: _rb_vm_get_sourceline
  Referenced from: /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@aimm3/gems/ruby-debug-base19x-0.11.30.pre10/lib/ruby_debug.bundle
  Expected in: flat namespace
dyld: Symbol not found: _rb_vm_get_sourceline
  Referenced from: /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@aimm3/gems/ruby-debug-base19x-0.11.30.pre10/lib/ruby_debug.bundle
  Expected in: flat namespace
/Users/shigeya/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner': Command failed with status (): [/Users/shigeya/.rvm/rubies/ruby-1.9.3-p125...] (RuntimeError)
     from /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
     from /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
     from /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
     from /Applications/RubyMine 4.0.1.app/rb/testing/runner/specs_in_folder_runner.rb:139:in `<top (required)>'
     from -e:1:in `load'
     from -e:1:in `<main>'
Process finished with exit code 1


How I can make Rubymine happy?

Current Gemfile is here: https://gist.github.com/1955987

16 comments

Please sign in to leave a comment.