Qt Creator provides a debugger plugin that acts as an interface between the Qt Creator core and external native debuggers such as the GNU Symbolic Debugger (GDB), the Microsoft Console Debugger (CDB), and a QML/JavaScript debugger.
The debugger plugin automatically selects a suitable native debugger for your projects from the ones found on your system. Manual overriding of this choice is possible.
To start an application from an open project under the control of a debugger, press the Debug button in the lower left corner of the main view, or press F5. Other, less common start options are available in the Debug > Start Debugging menu.
You can use the tool views in the Debug mode to inspect the state of your application while debugging.
Qt Creator is able to show complex data types in a customized, user-extensible manner. For this purpose, it takes advantage of two technologies, collectively referred to as debugging helpers. Using the debugging helpers is not essential for debugging with Qt Creator, but they provide you with a powerful tool to quickly examine complex data.
When debugging a Qt Quick application, you can inspect the state of the application while debugging JavaScript functions. You can set breakpoints, view call stack trace, and examine locals and expressions. While the application is running, you can inspect QML objects and user interfaces, as well as execute JavaScript expressions.
Illustrates how to debug C++ applications in Qt Creator.
Illustrates how to debug Qt Quick applications in Qt Creator.
If you encounter problems while debugging, check for possible solutions to them.