pycharm's debug use

**step over (F8 shortcut key): ** During single-step execution, when a sub-function is encountered in the function, it will not enter the single-step execution in the sub-function, but stop the sub-function after the entire execution, that is, The sub-function as a whole as a step. In the absence of sub-functions, it has the same effect as step into. Simply put, the program code crosses the sub-function, but the sub-function will be executed without entering.

**step into (F7 shortcut key): **In single step execution, it enters and continues single step execution when encountering sub-functions, and some will jump to the source code to execute.

**step into my code (Alt+Shift+F7 shortcut key): **In single step execution, enter and continue single step execution when encountering a sub-function, without entering the source code.

**step out (Shift+F8 shortcut key): **If you enter a function body, you read two lines of code and don't want to read it, jump out of the current function body and return to the place where the function is called, that is, use this function That's it.

Resume program (F9 shortcut key): Continue to resume the program and run directly to the next breakpoint.

The above four functions are the most commonly used functions. The general operation steps are to set breakpoints, debug and run, and then F8 to single-step debugging. When you encounter the function you want to enter, enter F7, and if you want to come out, use shift + F8, skip and don’t want to see it. Place, set the next breakpoint directly, and then F9 over.

Guess you like

Origin blog.csdn.net/gz153016/article/details/109362786