Configuring Debugger Options
CLion supports debugging for C/C++ executables using GDB. CLion provides you with the bundled version of GDB, but you can use any compatible GDB version installed on your platform.
To configure settings required for debugging, perform the following general steps
Adjusting the GDB start-up delay
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 with a delay as well. The value of that delay is predefined in CLion IDE. However, for massive projects this value can be insufficient, or vice versa, excessive for compact ones. You can adjust the value of delay to fit exactly your project. To change delay time for GDB to start, do the following:
.vmoptions file, and add there the following command:
Refer to Tuning CLion topic for details on path to
.vmoption file, specific for different
platforms, and other examples of how to tune CLion.