Configuring Qt Creator to work with GDB

My car has both GDB and CDB. My Qt creator uses CDB for debugging.

I tried to specify the path to GDB, but it does not work.

How to configure Qt Creator for debugging using GDB?

+6
gdb qt-creator
source share
2 answers

Make sure you configure Qt Creator to the Debug assembly configuration (Build menu β†’ Install Build Configuration β†’ Debug). This may seem obvious, but I accidentally chose "Release" and spent hours finding problems with the gdb configuration when Qt Creator silently ignored my breakpoints, despite the fact that I launch the application using the "Start Debugging" command.

Also note that reconfiguring Qt Creator for debug builds may not be sufficient in this case, but you will also need to complete a complete rebuild so that configuration changes are applied throughout your project (yes, that was an extra step I had to do).

Qt Creator can really do warnings with the dialog box if you are trying to debug assemblies with release configurations, for example, Visual Studio has been doing this for a long time. This will avoid silence.

+5
source share

You can run qtcreator with an additional option.

C:\QtSDK\QtCreator\bin\qtcreator.exe "-disable-cdb" 

disable cdb.

0
source share

All Articles