RubyMine 7.0.4 Help

Starting the Debugger Session

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> :

To start debugging a Rails application

  1. Click the Select Run/Debug Configuration drop-down list, or press Shift+Alt+F9, and select Development <application name> .
  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+F9, or click debug on the main toolbar.

See Also

Last modified: 4 February 2015
comments powered by Disqus