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!
Please sign in to leave a comment.
Hello,
could you please check how it goes in the latest RubyMine 2019.3 EAP? It has the updated debug gems.
Hi Olga,
Yep, I downloaded the 2019.3 EAP and now it works.
Thx for your help!
You're welcome, thanks for checking!
Hi Olga or other support person, is there a way of fixing this for 2019.2.4 without resorting to downloading the EAP please?
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.
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.
I just upgraded to 2019.3 and now finding this issue when trying to debug, any ideas? I'm currently stuck!
Ricardovj1, does the same happen in RubyMine 2019.3.2 Preview? Which Ruby version are you using, is it a local or remote one?
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:
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 :(
By the way, downgrading to 2019.1 made it all work for me again :(
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.
Here's the log file if it helps any.
Installing manually treats me to this when I try to run debug in RubyMine:
Yup, that's the same exact error I get. I'm also running Mojave 10.14.6 but I'm using rvm.
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.
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?
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.
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.
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
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.
Gentle bump on this. Any movement?
Please check 2019.3.2 RC.
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?
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:
Works just fine with Ruby 2.4.9 but fails with 2.7.0.
Help, please. Or fix this.
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)
Same problem here. Using RubyMine 2020.2 and Ruby 2.6.3.
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
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
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.
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
The fix will be most likely available in 2020.2.2 RC, you can also follow https://youtrack.jetbrains.com/issue/RUBY-26859