18 | How to debug Qt through the interface

1 Prerequisite

Qt 5.14.2

2 Specific operations

2.1 Turn on debug

Step 1: Determine where a breakpoint needs to be made and add a breakpoint
Insert image description here

Step 2: Execute breakpoints
Insert image description here

Step 3: Check the breakpoint value to see if it is correct.
Insert image description here
Insert image description here
Step 4: Reset the breakpoint according to the actual situation.
Step 5: Exit debug mode.

2.2 Shortcut keys

F5 for debugging
F9 to reset breakpoints
F10 for single-step execution

ctrl+click the function to view information about a function

2.3 Debugging interface

Insert image description here

3 FAQ

Question 1: How to enable debugging

Question 2: How to find all values ​​during debugging

Guess you like

Origin blog.csdn.net/u013916029/article/details/130543561
Recommended