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!

4
32 comments

Hello,

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

0

Hi Olga,

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

Thx for your help!

0

You're welcome, thanks for checking!

0

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

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

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

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

0

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

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

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

0

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

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

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

0

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

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

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

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

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

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

Gentle bump on this. Any movement?

0

Please check 2019.3.2 RC.

0

Hi, I have same error with RubyMine 2020.1.2.

I can run rspec tests on IDE's UI, but I can't set endpoints.

```

/Users/ikeay/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/debase-0.3.0.beta34/lib/debase.rb:74:in `start': undefined local variable or method `disable_all_iseqs' for Debase:Module (NameError)

```

Environment

- rbenv: ruby 2.6.6

- gems that plan to use in a project in the project directory

- macOS Catalina

 

Do you have any ideas?

0

Same problem here.

RubyMine 2020.2 on MacOS Catalina, Rails application running on Ruby 2.7.0 (on a RVM gemset call 2.7.0@herogami, see below).

When I click the debug icon, RubyMine exits with the following message:

/bin/bash -c "/Users/francesco/.rvm/bin/rvm ruby-2.7.0@herogami do /Users/francesco/.rvm/rubies/ruby-2.7.0/bin/ruby /Users/francesco/.rvm/gems/ruby-2.7.0@herogami/gems/ruby-debug-ide-0.8.0.beta24/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 55003 --host 0.0.0.0 --dispatcher-port 55004 -- /Users/francesco/Dev/Svn/Herogami/dev/trunk/Herogami/bin/rails server -b 0.0.0.0 -p 3000 -e development"
Traceback (most recent call last):
4: from /Users/francesco/.rvm/gems/ruby-2.7.0@herogami/gems/ruby-debug-ide-0.8.0.beta24/bin/rdebug-ide:204:in `<main>'
3: from /Users/francesco/.rvm/gems/ruby-2.7.0@herogami/gems/ruby-debug-ide-0.8.0.beta24/lib/ruby-debug-ide.rb:97:in `debug_program'
2: from /Users/francesco/.rvm/gems/ruby-2.7.0@herogami/gems/ruby-debug-ide-0.8.0.beta24/lib/ruby-debug-ide.rb:86:in `prepare_debugger'
1: from /Users/francesco/.rvm/gems/ruby-2.7.0@herogami/gems/ruby-debug-ide-0.8.0.beta24/lib/ruby-debug-ide.rb:78:in `start_server'
/Users/francesco/.rvm/gems/ruby-2.7.0@herogami/gems/debase-0.3.0.beta34/lib/debase.rb:74:in `start': undefined local variable or method `disable_all_iseqs' for Debase:Module (NameError)

Works just fine with Ruby 2.4.9 but fails with 2.7.0.

Help, please. Or fix this.

0

same issue here:

RubyMine 2020.2 on MacOS Catalina, Rails application running on Ruby 2.6.5

Traceback (most recent call last):
4: from /Users/warren/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ruby-debug-ide-0.8.0.beta24/bin/rdebug-ide:204:in `<main>'
3: from /Users/warren/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ruby-debug-ide-0.8.0.beta24/lib/ruby-debug-ide.rb:97:in `debug_program'
2: from /Users/warren/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ruby-debug-ide-0.8.0.beta24/lib/ruby-debug-ide.rb:86:in `prepare_debugger'
1: from /Users/warren/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ruby-debug-ide-0.8.0.beta24/lib/ruby-debug-ide.rb:78:in `start_server'
/Users/warren/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/debase-0.3.0.beta34/lib/debase.rb:74:in `start': undefined local variable or method `disable_all_iseqs' for Debase:Module (NameError)

1

Same problem here. Using RubyMine 2020.2 and Ruby 2.6.3.

0

Same problem here. Mac Catalina

RVM

Ruby 2.4.1 

RubyMine 2020.1.4
Build #RM-201.8743.13, built on July 21, 2020
Licensed to ******
You have a perpetual fallback license for this version
Subscription is active until August 4, 2021
Runtime version: 11.0.7+10-b765.65 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.6
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 16
Registry: ide.balloon.shadow.size=0
Non-Bundled Plugins: com.chrisrm.idea.MaterialThemeUI, NodeJS

0

Hello,

there's an issue related to debug gems' installation on OS X, could you please take a look:

https://youtrack.jetbrains.com/issue/RUBY-26859

If it's your case, could you please leave there a comment specifying your IDE, OS X, XCode and Ruby versions. There's also a possible workaround that might help: https://github.com/ruby-debug/debase/issues/89#issuecomment-682540903

1

I finally could run the RubyMine debugger after installing the local gem `debase-0.3.0.beta34.gem` following this tip: https://github.com/ruby-debug/debase/issues/89#issuecomment-686827382.

1

i had to delete all debase items in ~/.rbenv/versions/*.*.*(2.7.0 for me)/**/debase*. 

then ran

gem install --local /Applications/RubyMine.app/Contents/plugins/ruby/rb/gems/debase-0.3.0.beta34.gem -- --with-cflags="-Wno-error=implicit-function-declaration"

which required install of debase source first, so installed that.

and can now debug

 

RM-202.6948.74, JRE 11.0.8+10-b944.31x64 JetBrains s.r.o., OS Mac OS X(x86_64) v10.15.6, screens 1920x1200; Retina

 

3

The fix will be most likely available in 2020.2.2 RC, you can also follow https://youtrack.jetbrains.com/issue/RUBY-26859

0

Please sign in to leave a comment.