Ruby mine does not stop at breakpoints in gems

Hi,

I have noticed that rubymine does not stop when I add a break point to an external file that is required as part of a gem. This means that I can't debug an included gem from a seperate project. Breakpoints work fine in the project code and I am running under debug mode. Is there a setting in ruby mine to enable? Is this a bug?

3 comments
Comment actions Permalink

Hi,

breakpoints in gems are supposed to work (actually in any ruby code) so it looks like a bug for me.
What version of RubyMine are you using? Also could you please turn verbose mode for ruby debugger (Settings|Debugger|Ruby in 6.3 or Settings|Debugger in 7.0 EAP)
reproduce the problem and provide whole debugger's output (you can attach it here).

Regards, Oleg.

0
Comment actions Permalink

Hi Oleg,

Thanks for your response.  I am using rubymine 6.3.3. The following is the output you have requested.

E:\rubies\jruby-1.7.12\bin\jruby.exe --1.9 -X+O -J-Djruby.compile.mode=OFF -J-Djruby.debug.fullTrace=true -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) E:/rubies/jruby-1.7.12/lib/ruby/gems/shared/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide --debug --disable-int-handler --port 50162 --dispatcher-port 50163 -- E:\rubies\jruby-1.7.12\bin/cucumber E:/code/outbound_automation/features/CLAIMS/Templates/MAR02_New_Claim_Acknowledgment.feature --tags @DMS-16611 --color -r features --format pretty
Fast Debugger (ruby-debug-ide 0.4.23.beta1, ruby-debug-base 0.10.5.rc9) listens on 127.0.0.1:50162
Connected from 127.0.0.1
2296: Starting control thread
2296: Processing in control: b E:/code/side_show/lib/side_show/external_print_evidence.rb:5
2296: <breakpointAdded no="1" location="E:/code/side_show/lib/side_show/external_print_evidence.rb:5"/>
2296: Processing in control: start
2296: Starting: running program script
E:/rubies/jruby-1.7.12/lib/ruby/gems/shared/gems/ruby-debug-base-0.10.5.rc9-java/lib/ruby-debug-base.rb:210 warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
Fast Debugger (ruby-debug-ide 0.4.23.beta1, ruby-debug-base 0.10.5.rc9) listens on 127.0.0.1:50258
2612: Ide process dispatcher notified about sub-debugger which listens on 50258


Connected from 127.0.0.1
2612: Starting control thread
2612: Processing in control: b E:/code/side_show/lib/side_show/external_print_evidence.rb:5
2612: <breakpointAdded no="1" location="E:/code/side_show/lib/side_show/external_print_evidence.rb:5"/>
2612: Processing in control: start
2612: Starting: running program script
2612: INTERNAL ERROR!!! Bad file descriptor - Bad file descriptor

2612: <error>

0
Comment actions Permalink

Hi,

it definetely looks like a bug :(  Could you please try if the problem reproducible with RubyMine 7.0 EAP (http://confluence.jetbrains.com/display/RUBYDEV/RubyMine+EAP)
and if it is please file a bug in our tracker (https://youtrack.jetbrains.com/issues?q=%23ruby+%23debugger) with test which demonstrates the problem.

Regards, Oleg.

0

Please sign in to leave a comment.