CLion 2018.1 Help

Configuring Debugger Options

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

To configure settings required for debugging:

  1. In the Project view configure the roots, dependencies and libraries to be passed to the compiler.
  2. In the Toolchains Dialog Box, check up the actual GDB executable: bundled or specific. Change the current setting, if required.
  3. In the Settings/Preferences dialog (Ctrl+Alt+S), configure the debugger options:
    • Under the Build, Execution and Deployment section, click Debugger, and configure the debugger options.

Adjusting GDB start-up time out value

As it is known, there exists delay between the program launch and start of its execution. This time is needed to allocate code in memory, load and deploy program's components, libraries, data, etc. For that reason, start of GDB follows the program's launch after some time out as well. The value of that time out is predefined in CLion IDE (30000 milliseconds). However, for massive projects this value can be insufficient. You can adjust it to fit exactly your project. To change the time out value for GDB to start, do the following:

  • Go to the Help | Find Action main menu option and type registry.
  • In the dialog that opens, start typing cidr.debugger.timeout. Click the Value field of the highlighted string and enter here the timeout value in milliseconds.
    cl registryDebuggerTimeout
  • Click Close button to apply changes.
Last modified: 24 July 2018

See Also

Language and Framework-Specific Guidelines:

External Links: