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
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 registry.main menu option and type
In the dialog that opens, start typing timeout. Click the Value field of the highlighted string and enter the timeout value in milliseconds.
Click Close button to apply the change.