2 Replies Last post: Mar 30, 2014 8:51 AM by Oleg Sukhodolsky  
Arian Solberg Newbie 2 posts since
Mar 29, 2014
Currently Being Moderated

Mar 29, 2014 5:43 AM

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 0.0.0.0--port 1234 --dispatcher-port 26162 -- $COMMAND$

remote host: localhost

remote port: 1234

local port: 26162

local root folder:

/Users/name/Development/ruby/project

 

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 0.0.0.0--port 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 0.0.0.0:1234

 

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?

Oleg Sukhodolsky JetBrains 812 posts since
Apr 4, 2012
Currently Being Moderated
Mar 30, 2014 8:51 AM in response to: Arian Solberg
Re: Ruby Mine remote debugging doesn't work with Rails

I'm happy to hear that you was able to find the right way do to remote debugging (it means that our UI is not too bad

Also if you get reasonable performance while editing locally evailable sources of the project you may want to consider using remote sdk for such development

to get all power of RubyMine  

 

See http://confluence.jetbrains.com/display/RUBYDEV/Configuring+Remote+Interpreters and https://www.jetbrains.com/ruby/webhelp/configuring-remote-interpreters-via-ssh.html

for more information.

 

Regards, Oleg.

More Like This

  • Retrieving data ...