Help me make Rubymine breakpoints work like phpstorm.


I'm a very infrequent and beginner Rails developer, and I'm confused and tired of googling.  I just want Rubymine to do what PHPStorm does for me, if it's possible.

I'm on OSX 10.13, Rails 5.2.0, Ruby 2.3.1.

I make a bunch of breakpoints in various controllers, models, and views.

I do "rails s" in terminal to run my app locally. 

I open Chrome and navigate to the places in my app where I expect the breakpoints to pause execution, like when I run my php apps with xdebug+phpstorm.

Only, it doesn't.  Execution never pauses in Rails+Rubymine.

Is there a browser plugin I'm missing?  Or a Gem?  Or a Rubymine plugin?

Everything I find online appears to address breakpoints in the console or when doing remote debugging (rubymine is local, app is running remotely, I assume).  I don't care about the rails console or remote connections.  I want to step through my local code as I run the app in the local browser, again, like php+phpstorm+xdebug.

I saw this:

but I don't even have breakpoints working in views. That would be a nice start.

Any help greatly appreciated!

Comment actions Permalink

Just recording my recent resolution to this issue.  I simply did not know that Rubymine will run its own rails server in a debug environment; I was trying to use an external rails server (via rails s in OSX Terminal) and "gluing" it to Rubymine, a la PHPStorm+Chrome+Xdebug.

With Rubymine, there is no need to run a separate app server.  I had to configure an environment (which was not entirely straightforward in itself) -- very importantly,  adding debase and ruby-debug-ide Gems to my project's dev Gem group --  then 'Run' that environment.  Rubymine will launch the default browser and listen on localhost:3000, and breakpoints, variable inspections, etc. are usable after that.

Comment actions Permalink

Hello Adam,

thank you for posting your findings. Indeed RubyMine launches debugger when you run a Run configuration in debug mode:


Please sign in to leave a comment.