RubyMine 7.0.1 Web Help

In this section:

Before debugging

The debugging session starts with the selected run/debug configuration. Note that several debug processes can be launched simultaneously.

For example, debugging session for a Ruby script will start with the default temporary run/debug configuration, unless you select a permanent one.

In case of a Rails application, RubyMine starts the debugging session with the pre-defined Rails run/debug configuration for the selected environment, for example Development <application name>.

Debugging an application

To start debugging a Ruby script
  1. Open the desired Ruby script in the editor, or select it in the Project tool window.
  2. On the context menu, choose Debug <script name>:

    ruby_debugScript.png

To start debugging a Rails application
  1. Click the Select Run/Debug Configuration drop-down list, or press Shift+Alt+F9Shift+Alt+F9Shift+Alt+F9Shift+Alt+F9Shift+Alt+F9Shift+Alt+F9Shift+Alt+F9Shift+Alt+F9⌘+DControl Alt DShift Alt F9Control Alt DShift ⌘ F8, and select Development <application name>.

    ruby_debugRailsApplication.png

  2. Do one of the following:
    • If necessary, modify the selected run/debug configuration in Run/Debug Configuration:Rails. In particular, if you want to preview results in the browser, make sure that the Run browser check box is selected, and IP address specified. So doing, the application results will automatically display in your default Web browser defined in the Web Browsers page of the Settings dialog. Apply changes, and click Debug.
    • If the run/debug configuration settings are defined in advance and the option Display settings before launching is not selected in the Run/Debug Configuration dialog box, launch the debugging session immediately. To do that, on the main menu choose Run | Debug, press Shift+F9Shift+F9Shift+F9Shift+F9Shift+F9Alt+F5Ctrl+F5Shift+Alt+D or Shift+F9Shift+F9Control DShift F9⌘ F11Control D, or click debug on the main toolbar.

See Also

Concepts:

Procedures:

Reference:

Web Resources: