Debuggers supported by Qt
There are different types of debuggers that are supported by Qt. Depending on the platform and compiler you're running for your project, the debugger used will also be different. The following is the list of debuggers commonly supported by Qt:
- Windows (MinGW): GDB (GNU Debugger)
- Windows (MSVC): CDB (Debugging Tools for Windows)
- macOS: LLDB (LLVM Debugger), FSF GDB (Experimental)
- Linux: GDB, LLDB (Experimental)
- Unix (FreeBSD, OpenBSD, etc.): GDB
- Android: GDB
- iOS: LLDB
Debugging for PC
With GDB (GNU Debugger), there is no need for any manual setup if you're using MinGW compiler on Windows, as it usually comes together with your Qt installation. If you're running other operating systems such as Linux, you may need to install it manually before linking it up with your Qt Creator. Qt Creator detects the existence of GDB and links it with your project automatically. If it doesn't, you can easily find the GDB executable located in your Qt directory and link it by yourself.
CDB ...