One, first hit a breakpoint on the left line of the line of code that needs to be stopped, meaning to stop here
Second, right-click this file, select debug, click run
Three, the following interface appears
Fourth, introduce the function of several operation buttons, from left to right
- step over: Click this button, the program will be executed in order of steps, but if there is a packaged function inside, it will not jump into the function to view the steps. For example, ab (x) here will not jump in to check
- step into: Click this button, the program will be executed in the order of steps. If there is a function in it, whether it is encapsulated by itself or built by the three parties, it will jump in to see the execution steps
- step to my code: Click this button, the program will be executed in the order of steps. If there is a function encapsulated by itself, it will jump in to view the execution steps; if it is imported by a third party, it will not jump in to view the execution steps
- run to cursor: Click this button, the program will only display the execution steps from the position of the mouse cursor to the position of the breakpoint