Rubymine support for other debugging gems

Hi,


I would like to know why does Rubymine have this dependency on the ruby-debugX gems, and if there is a possibility of supporting other gems. I'm saying this because there has been an issue with the ruby-debug19 gem for the rubies 1.9.x, which doesn't work quite well, forcing everyone to install a patched gem and come up with every sort of tricks to fool Rubymine in order for it not to install this "default" gem which is, again, the faulty latest version of ruby-debug19. Which, by the way, I couldn't fool, I guess there are deeper issues in the Mac OS version of the ruby-debug gem / Rubymine / Ruby itself (I don't know which, so I'll blame everyone of them at once :) ).

But there is a new debugging gem available in the "market", called (fittingly) "debugger" (https://github.com/cldwalker/debugger). Works quite well, and is basically a fork of the ruby-debug. Is there the possibility of making it the gem used by Rubymine, so that it stops installing the ruby-debug19 gem? I would very much enjoy this, because what sets Rubymine apart from other IDEs for Mac (among other elegant stuff) is the possibility to debugging in the IDE.


Looking forward to your reply.
Regards,
Tiago

6 comments
Comment actions Permalink

Hello Thiago,

debugger gem provides only command-line debugging facilities, and moreover it breaks compatibility with ruby-debug-ide gem (same way ruby-debug19) did. RubyMine handles debug gems installation itself, solving most of the problems. It does not install ruby-debug19 or ruby-debug-base19, but uses own fork called ruby-debug-base19x. It compiles well on both 1.9.2 and 1.9.3 installed via RVM. I'll try to contact Gabriel, to see if we can come out with some solution.

0
Comment actions Permalink

Hi Dennis,

Thx for the reply. I've already opened an issue ticket in the debugger gem github page: https://github.com/cldwalker/debugger/issues/18#issuecomment-5624209

Maybe there could be a possibility of integration and extension of the gem so that it would fit Rubymine.

Regards,
Tiago

0
Comment actions Permalink

Hi - my problem is that our group is all using the "debugger" gem, so it's in our Gemfile.  I am one of a few that use RubyMine, and whenever I need to debug, I have to painfully uninstall the existing debugger gem and associated gems, then locally install ruby-debug-base19x, ruby-debug-ide,  run my debugging, then remove them all again so I don't commit anything that will break other people's test runs on our team.


Is there any way to have RubyMine still be able to debug and allow "gem debugger" to exist in a project Gemfile at the same time?

0
Comment actions Permalink

Hi Dave,

is it possible for you to change your Gemfile to something like;
if <RM>
  gem ruby-debug-ide
  gem ruby-debug-base19x
else
  gem debugger
end

Not sure if there are some property you could use right now, but it should be possible to implement something for 4.5.
As for compatibility with debugger - it might take som time :(

0
Comment actions Permalink

Sure I can try that. Dumb question though -- can you tell me the exact syntax of the 'if' statement to check if I'm using RubyMine? Is it really just <RM> ??

0
Comment actions Permalink

Unfortunately, currently there is no environment variable you could check to verify if you are executed inside RM.
But (I believe) it is much easier to add it than make two debuggers compatible.
Please, file a ticket about it in our bugtracker, and I will make sure that it will be implemented in 4.5.

Regards, Oleg

0

Please sign in to leave a comment.