RubyMine debugger
I suspect that you are pointing to the wrong SDK and gems.
Open Rubymine Preferences -> Language & Frameworks -> Ruby SDK and Gems
Select the correct RVM gemset, then press the green tick directly below that panel and apply your changes.
Incidentally, add the following to your Gemfile and run bundle install
, for debugging support from rubyMine -
group :development, :test do
gem 'debase'
gem 'ruby-debug-ide'
end
RubyMine debug not working
OK got this working now.
I opened the Command Prompt as Administrator and then executed the following
c:\gem install ruby-debug-ide
c:\gem install debase
This time they both executed with no error.
I then restarted RubyMine and now I can run in debug mode.
Happy days....
Rubymine debugger is failing on Macbook with M1 chip
Here is how I resolved this issue:
- Uninstall Rubymine
- Install the Appple Silicon version of Rubymine (I used the JetBrains Tool for this)
- In the terminal run this command: 'gem uninstall debase' and selected to uninstall all versions.
- Open Rubymine and your project
- Click the debug button and select "yes" when the popup asks if you want to install missing debug gems
- Next run 'bundle install' from the terminal (I ran this in Rubymine terminal). It installed debase 0.2.5.beta2
I am now up and running. Best of luck!
Fissh
Debugger in RubyMine - Frame is not available
I freaking didn't put any stoppoints, like this http://prntscr.com/ijqmzp
Thats why it wasn't working, I hope this will help some other curious newb like me ;)
RubyMine debug gem versions different from public gem versions
Looking at the gemspec, these gems have been "forked" by JetBrains and the RubyMine's come from their proprietary repos (https://github.com/JetBrains):
s.homepage = "https://github.com/JetBrains/debase".
Hence there are differences in versions.
Rubymine: debugging using installed Puma-dev?
This is possible with remote debugging. To configure, you have to make some changes to your app:
Add
export RUBY_DEBUG_PORT=1234
to.env
or.powenv
or any file puma-dev will load an environment variable from. Feel free to use whatever port you'd like, although RubyMine uses 1234 by default.Add the
ruby-debug-ide
anddebase
gems to your project's Gemfile.Add an initializer to your project to initialize remote debugging, like so:
if Rails.env.development? && ENV['RUBY_DEBUG_PORT']
Debugger.start_server nil, ENV['RUBY_DEBUG_PORT'].to_i
end- Restart puma-dev.
- Go to Edit Configurations in RubyMine and add a "Ruby remote debug" config. Name it whatever you'd like. Change the port to the port you set via
RUBY_DEBUG_PORT
. Set your local and remote root folders to your project root. - Select your newly created configuration and click the Debug button. It should connect to the debugger running in your puma-dev process.
Related Topics
Duplicate Elements of Array in Ruby
Rails Migration Complains About Undefined Method 'Attachment' Using Paperclip
Can Ruby Tell If It Is Called from an Interactive Shell or Cron
Rails: How to Use Scope to Find an Element in Array of Arrays
Metasploit Induction of Bundle and Rake
How to Insert Erb-Tags with Vim
Download All Gems Dependencies
Rails 4 Order by Virtual Attribute
How to Make an Infowindow Automatically Display as Open with Google-Maps-For-Rails
Local Server Error After Upgrading Ruby from 1.8.7 to 1.9.2 (With Rails 3.1.1)
How to Render the Ajax Response in Rails
How to Print a Line Number in Ruby
How to Get Order Username and Provisiondate for All Softlayer MAChines Using Ruby