Ruby Mine remote debugging doesn't work with Rails

I'm a bit new to Ruby so maybe I'm doing it wrong. I have a local Virtual Machine which is where I have my rails app. And RubyMine is actually editing the local files on my host (which my VM also has access to through filesharing).

In RubyMine I went to Run/Debug Configurations and then I went to Defaults/Remote Debug (screenshot attached). There it says:

rdebug-ide --host 1234 --dispatcher-port 26162 -- $COMMAND$
remote host: localhost
remote port: 1234
local port: 26162
local root folder:

So I *think* that means I need to go to my VM, go to my project folder, and run that command with the rails server:
rdebug-ide --host 1234 --dispatcher-port 26162 -- rails s

When I do that I see:
Fast Debugger (ruby-debug-ide 0.4.22, debase 0.0.9) listens on

But then I noticed the rails server isn't actually running (which I go to the webpage nothing loads) and when I go back to RubyMine and press the Debug button it says "Error Running Development: No Rails found in SDK"

What am I doing wrong?

Screen Shot 2014-03-28 at 6.45.36 PM.png
Screen Shot 2014-03-28 at 6.42.00 PM.png


Please sign in to leave a comment.