CLion 2019.1 Help

Start Debug Session

Before debugging

  1. Set the breakpoints in the source code.

  2. If necessary, create or modify the corresponding Run/Debug configuration.

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

To start debugging an application

  • Select the run/debug configuration to execute, and then do one of the following:
    • Click icons toolwindows toolWindowRun svg icon in the left gutter, and then choose icons actions startDebugger svg.

    • Click icons actions startDebugger svg on the toolbar.

    • On the main menu, go to Run | Debug 'selected configuration'.

    • Press Shift+F9.

  • Invoke the Run Anything dialog by pressing Double Ctrl (or search for Run anything in Help | Find ActionCtrl+Shift+A). In the Run Anything dialog, start typing the configuration name, select it from the list, then hold down Shift to switch to Debug mode, and press Enter to debug the selected configuration:

    debug via run anything

Note that after you've launched a debug session, the the Debug button icon that marks the Debug Tool Window toggles to the Active Debugger icon to indicate that the debugging process is active.

Last modified: 24 July 2019

See Also

Reference: