CLion 2017.3 Help

Stepping Through the Program

In this section:

Introduction

When a breakpoint is reached 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 executes one or more program steps.

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>
    /help/img/idea/2017.3/cl_debugSteppingMenu.png
  • Use the keyboard shortcuts.
  • Use the buttons in the stepping toolbar of the Debug tool window.
    /help/img/idea/2017.3/cl_debugSteppingToolbar.png

Tips and tricks

  • The Force Step Into command enables you to step into the functions that have no sources. In this case, the disassembly view opens so you can investigate it.
  • The Force Step Over command enables you to jump over the function call ignoring the breakpoints on the way.
  • The Force Run to Cursor command enables you to jump to the cursor position ignoring existing breakpoints on the way.
Last modified: 24 October 2017

See Also

Concepts: