Debug. Examine variables: Expand the variable tree in the Variables tab to view the values. Execute code: Use the "Step Over", "Step Into" and "Step Out" buttons to execute code. Delete a breakpoint: Right-click the breakpoint and select Delete Breakpoint."/> Debug. Examine variables: Expand the variable tree in the Variables tab to view the values. Execute code: Use the "Step Over", "Step Into" and "Step Out" buttons to execute code. Delete a breakpoint: Right-click the breakpoint and select Delete Breakpoint.">
Home >Backend Development >Python Tutorial >How to set breakpoints in pycharm to debug the program
Setting breakpoints in the PyCharm debugger requires the following steps: Add a breakpoint: Left-click on the line of code and select "Toggle Breakpoint". Start the debugger: Select "Run" > "Debug". Examine variables: Expand the variable tree in the Variables tab to view the values. Execute code: Use the "Step Over", "Step Into" and "Step Out" buttons to execute code. Delete a breakpoint: Right-click the breakpoint and select Delete Breakpoint.
How to use PyCharm to set breakpoints to debug the program
Step 1: Add breakpoints
Step 2: Start the debugger
Step 3: Check the variable
Step 4: Execute the code
Step 5: Delete the breakpoint
Tip:
The above is the detailed content of How to set breakpoints in pycharm to debug the program. For more information, please follow other related articles on the PHP Chinese website!