RubyMine 2017.3 Help

Stepping Through the Program

Introduction

When a breakpoint is reached or your program is suspended, the Debug tool window becomes active and enables you to get control over the program's execution. For this purpose, you can use the Run menu commands, or the icons on the stepping toolbar of in the Debug tool window.

Each stepping action advances the execution point to the next execution location, depending on the action you choose.

Stepping through the program

Do one of the following:

  • On the main Run menu, or on the editor's context menu, choose one of the <stepping command>
    rm debugSteppingMenu
  • Use the keyboard shortcuts.
  • Use the buttons in the stepping toolbar of the Debug tool window.
    debugSteppingToolbar

Tips and tricks

  • The Force Step Into command frames step into enables you to step into a method of a class not to be stepped into.
    The classes, stepping into which is suppressed, are specified on the Stepping page of the Settings/Preferences dialog box.
  • The Force Step Over command force step over enables you to jump over the method call ignoring the breakpoints on the way.
  • The Force Run to Cursor command frames run to cursor enables you to jump to the cursor position ignoring existing breakpoints on the way.
Last modified: 29 November 2017

See Also