CLion 2018.2 Help

Configuring Debugger Options

CLion supports debugging for C/C++ executables using bundled LLDB and bundled or custom GDB.

To configure the settings required for debugging

  1. In the Project view, configure roots, dependencies and libraries.

  2. In the Debugger section of the Toolchains Dialog, choose the desired debugger.

  3. In Debugger settings dialog of the Settings / Preferences | Build, Execution and Deployment menu, configure the debugger options.

Adjusting GDB start-up time out value

As it is known, there exists a delay between the program launch and the start of its execution. This time is required for code allocation in memory, loading and deploying program's components, libraries, and data. Due to that, the start of GDB follows the program's launch after a delay as well. The value of that time out is predefined in CLion (30000 milliseconds), however you can adjust it for the needs of your project.

To change the time out value GDB

  • Go to the Help | Find Action main menu option and type registry.

  • In the dialog that opens, start typing timeout. Click the Value field of the highlighted string and enter the timeout value in milliseconds.

    cl registryDebuggerTimeout

  • Click Close button to apply the change.

Last modified: 27 November 2018

See Also

Language and Framework-Specific Guidelines:

External Links: