RubyMine 1.0.5: Remote debugging

May 15th, 2009 by Oleg Shpynov

One of the new features of RubyMine 1.0.5, released yesterday, is remote debugging support. Here’s a small guide for using this feature:

  1. Create new remote debug run configuration. Run Configuration Parameters
  2. Specify remote host and remote port to connect to. Ensure your firewall doesn’t block connections at given port.
  3. Specify Remote root folder and Local root folder options.These options will be used for sources mapping on remote and local machines. If root folders selected are incorrect, the debugger will connect but no breakpoints will be reached.
  4. Run rdebug-ide –port SELECTED_PORT — SCRIPT on the server side

We are ready to start.  Launch created remote debug run configuration and explore what’s happening on the remote machine!

-JetBrains RubyMine Team

Tags:

5 Responses to “RubyMine 1.0.5: Remote debugging”

  1. Kevin Menard Says:

    Is there an easy way to debug out of process rake tasks? I’d like to debug tests as they run through rake, since sometimes there’s different execution behavior than there is in RubyMine.

  2. Oleg Shpynov Says:

    Hello Kevin,
    When you run rake task inside RubyMine it creates correspoding run configuration, so you should go to run configurations editor, save it and debug.
    Hope this helps

  3. JetBrains RubyMine Blog » Blog Archive » RubyMine 1.1 RC Says:

    [...] Remote Debug for Ruby and Rails [...]

  4. Gary Taylor Says:

    I tried this - but when I run the configuration, rdebug-ide exits and displays the following ‘Uncaught exception: no such file to load — $
    ‘. I am literally typing in the command shown by the IDE which is ‘rdebug-ide –port 1234 — $SCRIPT$’.

    Can anyone help with this please ?

    Many Thanks

    Gary

  5. Oleg Shpynov Says:

    Hello Gary,
    Please replace $SCRIPT$ to path of the script you want to debug.

Leave a Reply