Debugging problems in QT creator

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.