Qtcreator does not have a debugger by default and therefore requires additional installation by the user.
WIN10 please download the installation: https://developer.microsoft.com/zh-cn/windows/hardware/download-windbg
Win8, win7 please download the installation (including 32-bit and 64-bit): http://download.csdn.net/detail/qq_35488967/9840722 Configuration Tutorial installation, there will be a lot of tools for you to choose, only select " Debugging Tools for Windows "can
After the installation is complete, open qtcreator, tools –> options –> build and run –>debuggers come in and see if there is a debugger option in the debugger list, and if so, prove the installation was successful.
On the current screen, click on the "Build Kit" –> the item under automatic detection. Selecting the ComboBox in the Debugger column opens a drop-down list, as shown in the figure
Select the appropriate option from the drop-down list, 32-bit Select x86,64 bit Select x64 Finally, click on the "Apply" debugging tutorial in the lower right corner
After you've configured your achievements, just debug it. Open a project, press F11 (the code will stay in the first sentence of the Min function), or make a breakpoint in the code, press the F5 button (the code will stop at the breakpoint), you can debug.