Giter Site home page Giter Site logo

Comments (15)

os97673 avatar os97673 commented on August 10, 2024 1

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.

os97673 avatar os97673 commented on August 10, 2024

I believe the problem has been fixed, feel free to reopen if it is not.

from ruby-debug-ide.

jbedworth avatar jbedworth commented on August 10, 2024

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.

os97673 avatar os97673 commented on August 10, 2024

and what is the message you see?

from ruby-debug-ide.

jbedworth avatar jbedworth commented on August 10, 2024

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.

jbedworth avatar jbedworth commented on August 10, 2024

strangely, debugging seems to be working fine in rubymine. I just can not do "rails -c"

from ruby-debug-ide.

os97673 avatar os97673 commented on August 10, 2024

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.

jbedworth avatar jbedworth commented on August 10, 2024

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.

os97673 avatar os97673 commented on August 10, 2024

Hmm, do you have ruby-debug-ide in your Gemfile?

from ruby-debug-ide.

jbedworth avatar jbedworth commented on August 10, 2024

yes, i added it to the development group

from ruby-debug-ide.

os97673 avatar os97673 commented on August 10, 2024

why do you need it in the Gemfile. Rubymine will work w/o having ruby-debug-ide there.

from ruby-debug-ide.

jbedworth avatar jbedworth commented on August 10, 2024

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.

os97673 avatar os97673 commented on August 10, 2024

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.

ihave58 avatar ihave58 commented on August 10, 2024

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 -- $COMMAND$
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.

mscottford avatar mscottford commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.