Comments (15)
Please check if debase gem is installed. If it is I'd try to re-install gems and the ruby sdk (sometime the problem is binary incompatibility caused by different versions of compiler/linker used to build sdk and gems
from ruby-debug-ide.
I believe the problem has been fixed, feel free to reopen if it is not.
from ruby-debug-ide.
I'm hitting this today on Ruby 2.3, Rails 5.0.0.beta 3, ruby-debug-ide 0.0.0 and debase 0.2.1 freshly reinstalled.
from ruby-debug-ide.
and what is the message you see?
from ruby-debug-ide.
john$ rails c
/Users/john/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:8:in `require': cannot load such file -- debase (LoadError)
bundle show debase says "no gem by that name"; however, running gem server shows:
debase 0.2.1 [rdoc] [www] - depends on debase-ruby_core_source, rake, test-unit.
debase is a fast implementation of the standard Ruby debugger debug.rb for Ruby 2.0
debase 0.2.2.beta7 [rdoc] [www] - depends on debase-ruby_core_source, rake, test-unit.
debase is a fast implementation of the standard Ruby debugger debug.rb for Ruby 2.0
debase-ruby_core_source 0.8.6 [rdoc] [www] - depends on archive-tar-minitar, rake.
Provide Ruby core source files
debug_inspector 0.0.2 [rdoc] [www]
A Ruby wrapper for the MRI 2.0 debug_inspector API
No clue where the beta version is coming from. I just did gem install debase.
from ruby-debug-ide.
strangely, debugging seems to be working fine in rubymine. I just can not do "rails -c"
from ruby-debug-ide.
Well, it is expected. Rubymine adds special "spells" to make it works without adding ruby-debug-ide and debase to Gemfile. If you want to use them from rails -c
you need to add them to your Gemfile (though I'm not sure why you may want to have this functionality)
from ruby-debug-ide.
rails -c is pretty important functionality. I don't think it's acceptable that the rails console crashes on startup just because you want to debug your app in rubymine occasionally.
from ruby-debug-ide.
Hmm, do you have ruby-debug-ide in your Gemfile?
from ruby-debug-ide.
yes, i added it to the development group
from ruby-debug-ide.
why do you need it in the Gemfile. Rubymine will work w/o having ruby-debug-ide there.
from ruby-debug-ide.
Yes, you're absolutely right. I can work-around this bug by taking it out of my gemfile for the project. Still, I wonder why this is happening.
from ruby-debug-ide.
The problem with specifying dependencies for the gem is that it requires ruby-debug-base for mri 1.8 and jruby, ruby-debug-base19 for mri 1.9 and debase for ruby 2.x. I've tried to specify this in gemspec but failed :( So if you know how to do this - you are welcome ;)
from ruby-debug-ide.
I am still facing the issues here. The debugger starts from RubyMine and remote rdebug-ide crashes immediately. Here is the log, Kindly help resolving this:
[ec2-user@ip-10-147-40-29 ~]$ rdebug-ide --host 0.0.0.0 --port 1234 --dispatcher-port 26162 --
Fast Debugger (ruby-debug-ide 0.6.0, debase 0.2.1, file filtering is supported) listens on 0.0.0.0:1234
Uncaught exception: cannot load such file -- /home/ec2-user/$
/usr/bin/rdebug-ide:23:in load' /usr/bin/rdebug-ide:23:in
/usr/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:88:in
debug_load': cannot load such file -- /home/ec2-user/$ (LoadError) from /usr/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:88:in
debug_program'from /usr/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide:130:in
<top (required)>' from /usr/bin/rdebug-ide:23:in
load'from /usr/bin/rdebug-ide:23:in `'
from ruby-debug-ide.
I was able to work around this by adding require: false
in the Gemfile where I include ruby-debug-ide
.
from ruby-debug-ide.
Related Issues (20)
- Debugger fails on apple m1 HOT 2
- Ruby Remote Debug Can Cause Arbitrary Remote Code Execution
- "daemon not healthy" on fresh install
- Undefined method 'index' for nil:NilClass @ /usr/local/bundle/ruby/2.6.0/gems/debase-0.2.4.1/lib/debase/context.rb:35:in `at_line' HOT 2
- Segmentation fault in Ruby 3.1.0 / RubyMine debugger HOT 6
- Nix incompatibility
- Can't debug Rails server old version 3.2.22.5, VSCode 1.64.2
- Uncaught exception - rdebug-ide fails to initialize superclass
- ruby 3,symbol not found in flat namespace '_RHASH_EMPTY_P'
- Support the "logpoint" breakpoint variant
- Question: How to use ruby-debug-ide with unicorn? How to use --attach-mode?
- --skip-wait-for-start makes certain files not to stop more than once HOT 1
- When started without breakpoints, only pauses code execution once
- How to start the debugger from Ruby? (Also: How to set a breakpoint in HAML?) HOT 2
- rdebug-ide is getting stuck when executing `notify_dispatcher_if_needed`
- Migrate tests to GHA
- irb 1.6.4
- Issue with bundle install with Rails 7.0 & Ruby 3.2 on Docker MacOS M1 HOT 2
- Debugger hits all breakpoints once then stops HOT 1
- Incompatibility with ruby 3.3.0 on Sonoma? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-debug-ide.