Debugger won´t work: Undefined method disable_all_iseqs in debase-0.3.0.beta8

Completed

Hi all!

I´m trying to make the RubyMine debugger work, but again and again I arrive at this error:

/Users/tom/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/debase-0.3.0.beta8/lib/debase.rb:71:in `start': undefined local variable or method `disable_all_iseqs' for Debase:Module (NameError)

That debase gem seems to be distributed with the Rubymine installation files. Anyone have an idea of what could be the solution? Thanks in advance!

21 comments
Comment actions Permalink

Hello,

could you please check how it goes in the latest RubyMine 2019.3 EAP? It has the updated debug gems.

0
Comment actions Permalink

Hi Olga,

Yep, I downloaded the 2019.3 EAP and now it works.

Thx for your help!

0
Comment actions Permalink

You're welcome, thanks for checking!

0
Comment actions Permalink

Hi Olga or other support person, is there a way of fixing this for 2019.2.4 without resorting to downloading the EAP please?

0
Comment actions Permalink

Hi Mark,

there was a corresponding issue fixed in 2019.3. Do I understand it right that you don't want to try EAP because it's not a stable release? We've already published beta as well.

0
Comment actions Permalink

Yes, I was trying to avoid the EAP. I now have the Beta, and the Ruby debugger is working for me.

Thanks for your help Olga.

0
Comment actions Permalink

I just upgraded to 2019.3 and now finding this issue when trying to debug, any ideas? I'm currently stuck!

0
Comment actions Permalink

Ricardovj1, does the same happen in RubyMine 2019.3.2 Preview? Which Ruby version are you using, is it a local or remote one?

0
Comment actions Permalink

Hi Olga Kuvardina, I just installed 3.2 preview and same thing. Initially I get an error saying that it couldn't install the debugging gem debase-0.3.0.beta20 (Release 3.1 uses gem debase-0.3.0.beta19 and that failed with the same error).

The error I get is this:

Failed to Install Gems. Following gems were not installed: /Applications/RubyMine.app/Contents/plugins/ruby/rb/gems/debase-0.3.0.beta20.gem: Error installing debase-0.3.0.beta20.gem: ERROR: Failed to build gem native extension. current directory: /Users/ricardovillamil/.rvm/gems/ruby-2.7.0@slang/gems/debase-0.3.0.beta20/ext /Users/ricardovillamil/.rvm/rubies/ruby-2.7.0/bin/ruby -I /Users/ricardovillamil/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0 -r ./siteconf20200107-17222-142qf2i.rb extconf.rb /Users/ricardovillamil/.rvm/src/ruby-2.7.0 checking for vm_core.h... yes checking for iseq.h... yes checking for method.h... yes checking for version.h... yes creating Makefile current directory: /Users/ricardovillamil/.rvm/gems/ruby-2.7.0@slang/gems/debase-0.3.0.beta20/ext make "DESTDIR=" clean current directory: /Users/ricardovillamil/.rvm/gems/ruby-2.7.0@slang/gems/debase-0.3.0.beta20/ext make "DESTDIR=" compiling breakpoint.c In file included from breakpoint.c:3: In file included from ./debase_internals.h:15: In file included from ./debugger_util.h:20: insns.def:1484:7: error: incomplete definition of type 'struct rb_builtin_function' 1 - bf->argc; ~~^ /Users/ricardovillamil/.rvm/src/ruby-2.7.0/vm_core.h:574:22: note: forward declaration of 'struct rb_builtin_function' typedef const struct rb_builtin_function *RB_BUILTIN; ^ breakpoint.c:34:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] z5b0d67e460->z1bdac88cc2=strlen(z5e1fde07c3);z5b0d67e460->z0b7a8f8ed2= ~^~~~~~~~~~~~~~~~~~~ breakpoint.c:61:13: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] z1c3440c3bb=zf35dc14a7b;return z5b0d67e460->z1c3440c3bb;}static VALUE ~^~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [breakpoint.o] Error 1 make failed, exit code 2 Gem files will remain installed in /Users/ricardovillamil/.rvm/gems/ruby-2.7.0@slang/gems/debase-0.3.0.beta20 for inspection. Results logged to /Users/ricardovillamil/.rvm/gems/ruby-2.7.0@slang/extensions/x86_64-darwin-18/2.7.0/debase-0.3.0.beta20/gem_make.out

So I try to install it manually doing 

$ gem install debase -v 0.3.0.beta20 --pre

 

And that installs the gem fine. But then I get the errors when debugging:

/Users/ricardovillamil/.rvm/gems/ruby-2.7.0@slang/gems/debase-0.3.0.beta20/lib/debase.rb:72:in `start': undefined local variable or method `disable_all_iseqs' for Debase:Module (NameError)
from /Users/ricardovillamil/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/ruby-debug-ide-0.8.0.beta19/lib/ruby-debug-ide.rb:78:in `start_server'
from /Users/ricardovillamil/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/ruby-debug-ide-0.8.0.beta19/lib/ruby-debug-ide.rb:86:in `prepare_debugger'
from /Users/ricardovillamil/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/ruby-debug-ide-0.8.0.beta19/lib/ruby-debug-ide.rb:97:in `debug_program'
from /Users/ricardovillamil/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/ruby-debug-ide-0.8.0.beta19/bin/rdebug-ide:197:in `<main>'



I'm stuck still :(

0
Comment actions Permalink

By the way, downgrading to 2019.1 made it all work for me again :(

0
Comment actions Permalink

Same issue here, Ricardovj1, but I haven't tried rolling back to 2019.1 yet.

I'm on a Mac running Mojave. I'm using rbenv, which I have defined in my Ruby SDKs in RubyMine. I install non-beta versions of debase and ruby-debug-ide, but RubyMine won't use them and claims the debug gems are missing. So, I click to install them and get the exact same errors you do above.

I installed EAP version, and got the same errors. I've cleaned up my gem directory, removed and reinstalled. Nothing works. All I want to do is debug a simple .rb script.

Going to see if I can rollback and have it work like you do. Fingers crossed.

0
Comment actions Permalink

Here's the log file if it helps any.

current directory: /Users/scotia.draven/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/debase-0.3.0.beta20/ext
/Users/scotia.draven/.rbenv/versions/2.7.0/bin/ruby -I /Users/scotia.draven/.rbenv/versions/2.7.0/lib/ruby/2.7.0 -r ./siteconf20200108-89221-1m5kdhn.rb extconf.rb
/Users/scotia.draven/.rbenv/sources/2.7.0/ruby-2.7.0
checking for vm_core.h... no
checking for vm_core.h... no
checking for vm_core.h... yes
checking for iseq.h... yes
checking for method.h... yes
checking for version.h... yes
creating Makefile

current directory: /Users/scotia.draven/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/debase-0.3.0.beta20/ext
make "DESTDIR=" clean

current directory: /Users/scotia.draven/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/debase-0.3.0.beta20/ext
make "DESTDIR="
compiling breakpoint.c
In file included from breakpoint.c:3:
In file included from ./debase_internals.h:15:
In file included from ./debugger_util.h:20:
insns.def:1484:7: error: incomplete definition of type 'struct rb_builtin_function'
1 - bf->argc;
~~^
/Users/scotia.draven/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/debase-ruby_core_source-0.10.9/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm_core.h:574:22: note: forward declaration of 'struct rb_builtin_function'
typedef const struct rb_builtin_function *RB_BUILTIN;
^
1 error generated.
make: *** [breakpoint.o] Error 1

make failed, exit code 2

Installing manually treats me to this when I try to run debug in RubyMine:

/usr/local/bin/fish -c "bash -c 'env RBENV_VERSION=2.7.0 /usr/local/Cellar/rbenv/1.1.2/libexec/rbenv exec ruby /Users/scotia.draven/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/ruby-debug-ide-0.8.0.beta19/bin/rdebug-ide --key-value --step-over-in-blocks --disable-int-handler --evaluation-timeout 10 --evaluation-control --time-limit 100 --memory-limit 0 --rubymine-protocol-extensions --port 55816 --host 0.0.0.0 --dispatcher-port 55817 -- /Users/scotia.draven/Documents/Books/Little-Book-Of-Ruby-Code-Archive/LittleBookOfRuby/03/adventure1.rb'"

Traceback (most recent call last):

4: from /Users/scotia.draven/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/ruby-debug-ide-0.8.0.beta19/bin/rdebug-ide:197:in `<main>'

3: from /Users/scotia.draven/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/ruby-debug-ide-0.8.0.beta19/lib/ruby-debug-ide.rb:97:in `debug_program'

2: from /Users/scotia.draven/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/ruby-debug-ide-0.8.0.beta19/lib/ruby-debug-ide.rb:86:in `prepare_debugger'

1: from /Users/scotia.draven/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/ruby-debug-ide-0.8.0.beta19/lib/ruby-debug-ide.rb:78:in `start_server'

/Users/scotia.draven/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/debase-0.3.0.beta20/lib/debase.rb:72:in `start': undefined local variable or method `disable_all_iseqs' for Debase:Module (NameError)




Process finished with exit code 1
0
Comment actions Permalink

Yup, that's the same exact error I get. I'm also running Mojave 10.14.6 but I'm using rvm.

0
Comment actions Permalink

Ricardovj1,

Thank you for your comment above! I have rolled back to 2019.1.4 and debugging is working beautifully!

Now, I just hope JetBrains can fix the current versions of RubyMine.

0
Comment actions Permalink

This issue is marked "completed" when it is not. Should we make another post, or is this one going to actually get some attention from JetBrains?

0
Comment actions Permalink

This is still broken in 2019.3.1. Please fix this, its so frustrating when you guys repeatedly break the poorly conceived configurations debug system.  Makes me reconsider switching to vscode and once and for all dumping ItelliJ.

0
Comment actions Permalink

2019.3.2.preview on Windows 10 x64 with Ruby 2.7.0, tried on two different machines, same error. Works fine with Ruby 2.6.5. Rolling back to 2019.3.1 does not change failure.

0
Comment actions Permalink

Debugging in case of 2.7 isn't supported but will be in 2020.1, please follow the corresponding request: https://youtrack.jetbrains.com/issue/RUBY-25586

0
Comment actions Permalink

If 2.7 debugging is not supported yet that is fine. I would not have reported it except it was not clear to me from that the state of 2.7 support was not there yet. Maybe that should be called out a bit more. Having syntax support for 2.7 but not debugger support sounds like a major thing to me. 

0
Comment actions Permalink

Gentle bump on this. Any movement?

0
Comment actions Permalink

Please check 2019.3.2 RC.

0

Please sign in to leave a comment.