Problem debugging with Rubymine

I have a problem that i cannot make Rubymine's debugger to work. Whenever i try to run it i get this error:

 

Fast Debugger (ruby-debug-ide 0.6.0, debase 0.2.2.beta8, file filtering is supported) listens on 0.0.0.0:32840
Connected from 127.0.0.1
19098: Starting control thread
19098: Processing in control: b /home/juanfra/RubymineProjects/IEEEXtreme9/HourRank/13/coprime_conundrum.rb:21
19098: INTERNAL ERROR!!! undefined local variable or method `enable_trace_points' for Debase:Module

19098: <error>
19098: INTERNAL ERROR!!! undefined local variable or method `enable_trace_points&#39; for Debase:Module

19098: </error>
19098: <error>
19098:     /home/juanfra/.gem/ruby/2.3.0/gems/debase-0.2.2.beta8/lib/debase.rb:32:in `add_breakpoint&#39;
    /home/juanfra/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide/commands/breakpoints.rb:48:in `execute&#39;
    /home/juanfra/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide/ide_processor.rb:87:in `block in process_commands&#39;
    /home/juanfra/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide/ide_processor.rb:84:in `catch&#39;
    /home/juanfra/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide/ide_processor.rb:84:in `process_commands&#39;
    /home/juanfra/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:124:in `block in start_control&#39;
19098: </error>
-e:1:in `sleep': Interrupt
    from -e:1:in `block in <main>'
/home/juanfra/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:80:in `sleep': Interrupt
    from /home/juanfra/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:80:in `wait'
    from /home/juanfra/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:80:in `block in prepare_debugger'
    from /home/juanfra/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:79:in `synchronize'
    from /home/juanfra/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:79:in `prepare_debugger'
    from /home/juanfra/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:85:in `debug_program'
    from /home/juanfra/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide:130:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'

 

It is currently set to run with ruby-2.3.1-p112 and it has the following gems installed:

debase

debase-ruby_core_source

debugger-ruby_core_source

io-console

ruby-debug-ide

 

If you need any more information about my settings please let me know. I thank in advance anyone that would help me with this problem.

 

7 comments
Comment actions Permalink

I appear to be seeing the same.

 

/opt/chefdk/embedded/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide --debug --disable-int-handler --evaluation-timeout 30 --rubymine-protocol-extensions --port 57450 --host 0.0.0.0 --dispatcher-port 57451 -- /opt/chefdk/embedded/bin/rspec /Users/cruhl/Documents/Cars/work-repos/chef-repos/cookbooks/new-jenkins --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --pattern spec/*_spec.rb
Testing started at 10:14 AM ...
Fast Debugger (ruby-debug-ide 0.6.0, debase 0.2.2.beta8, file filtering is supported) listens on 0.0.0.0:57450
Connected from 127.0.0.1
2767: Starting control thread
2767: Processing in control: b /Users/cruhl/Documents/Cars/work-repos/chef-repos/cookbooks/Cars-Role-WAS85/recipes/utlserver.rb:35
2767: INTERNAL ERROR!!! undefined local variable or method `enable_trace_points' for Debase:Module

2767: <error>
2767: INTERNAL ERROR!!! undefined local variable or method `enable_trace_points&#39; for Debase:Module

2767: </error>
2767: <error>
2767: /Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/debase-0.2.2.beta8/lib/debase.rb:32:in `add_breakpoint&#39;
/Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide/commands/breakpoints.rb:48:in `execute&#39;
/Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide/ide_processor.rb:87:in `block in process_commands&#39;
/Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide/ide_processor.rb:84:in `catch&#39;
/Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide/ide_processor.rb:84:in `process_commands&#39;
/Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:124:in `block in start_control&#39;
2767: </error>
-e:1:in `sleep': Interrupt
from -e:1:in `block in <main>'
/Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:80:in `wait': Interrupt
from /Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:80:in `block in prepare_debugger'
from /Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:79:in `synchronize'
from /Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:79:in `prepare_debugger'
from /Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:85:in `debug_program'
from /Users/cruhl/.chefdk/gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide:130:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'

Process finished with exit code 130 (interrupted by signal 2: SIGINT)

 

Rubymine 2016.2.1

dbase 0.2.2.beta

debase-ruby_core_source 0.9.2

ruby-debug-ide 0.6.0

 

0
Comment actions Permalink

I reverted to debase 0.2.1 and that appears to have solved my problem.   I'm able to run rspec again through RubyMine. Hope this helps others.

0
Comment actions Permalink

Hello,

could you please try uninstalling all debug gems (debase, ruby-debug-ide - all versions) and check debug in RubyMine 2016.3 Beta? (it'll install more fresh debug gems' versions)

1
Comment actions Permalink

@Olga, I am still seeing the same with the latest debase (which appears to be 0.2.2.beta9). Reverting to 0.2.1 also resolved the problem for me

0
Comment actions Permalink

@Simon,

could you please specify what Ruby version and Ruby SDK manager (rvm/rbenv/none of them) you use? Did it happen to all your scripts?

 

0
Comment actions Permalink

@Olga, the Ruby version is 2.2.3p172 (with some proprietary patches). The sdk manager shouldn't matter, but for the record, it is also proprietary. I can provide the exact version of each relevant gem. But as I wrote above, avoiding the prerelease of 'debase' and 'ruby-debug-ide' avoids the problem reported above.

More troublesome for the folks at my company trying to use RubyMine is the fact that the debugger slows down runtime execution 4 times against regular execution even if not a single breakpoint is set. That makes little sense to me, especially for an interpreted language. For the record, none of the command-line debuggers show this slow-down, but it does make RubyMine less useful to us. We have already tried a number of things such as swapping out the JRE (The Oracle JRE speeds it up slightly, but the 4x is with the Oracle JRE already), turning off some features here and there, but nothing seems to be bringing runtime speeds to the reasonable. Also, when you do hit a breakpoint, simply stepping over one line of code takes something like 5 seconds

I can open a separate topic for this if that helps 

RubyMine 2016.3
Build #RM-163.7743.60, built on November 28, 2016
Licensed to Shopify / Simon Helsen
Subscription is active until November 25, 2017
JRE: 1.8.0_112-b16 x86_64
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation

0
Comment actions Permalink

@Simon, if the issue is about slowing down the runtime execution, it'd be better to start a new thread (you can write me to rubymine-support@jetbrains.com attaching the verbose output from the debug console [Verbose output first should be turned on in Preferences | Build, Execution, Deployment | Debugger]).

0

Please sign in to leave a comment.