In Windows, debugging problems may occur when QT creator is used for development. How can I perform one-step debugging in QT creator?
The development process in vs is a little different. In QT creatordang, msvcis compiled and used, but cdb.exe is used.
Because cdb.exe is part of debugging tools for Windows, you need to download microsoft's debugging tool.
: Http://msdn.microsoft.com/en-us/windows/hardware/gg463009.aspx
After the installation is complete, debug symbols are also required. The debugging symbols must be downloaded from the Microsoft debugging symbol server.
The link is as follows:
Symsrv * symsrv. dll * D: \ mysymbols * http://msdl.microsoft.com/download/symbols
Note: The above link is downloaded to D: \ mysymbols. You can change it.
When downloading, you should note that there is no independent debugging toolkit to download, and it has been included in the driver development kit.
The driver development kit has a total of 1 GB, And the debugging tool actually used is only dozens of MB.
Next we will start to configure QT Creator:
1. Tools-> options-> debugger-> CDB
Symbol paths: symsrv * symsrv. dll * D: \ mysymbols * http://msdl.microsoft.com/download/symbols
2. Add the path of cdb.exe
Tools-> options-> build & run-> kits
Click manual-> desktop (default), as shown in figure
Add the newly installed debugging tools for Windows Directory cdb.exe in Debugger:
Restart QT creator to debug it!
If you have any questions, leave a message!