PyCharm
A professional IDE specialized for Python development, covering all Python domains from scientific computing to web development
Debug shortcuts for efficiently identifying and fixing Python application bugs with breakpoint setting and step execution
Shift+F9
Debug
Runs the current file or project in debug mode.
💡 Hint: F9 to Debug
🎯 Start the program in debug mode to identify bug causes
Ctrl+F8
Toggle breakpoint
Set or remove a breakpoint at the current line.
💡 Hint: F8 for break
🎯 Set/remove breakpoints to stop program execution at any position
F8
Step over
Execute the current line and move to the next line (without entering functions).
💡 Hint: F8 to step
🎯 Execute the current line and proceed to the next, debugging without entering function internals
F7
Step into
Execute the current line and enter into functions or methods.
💡 Hint: F7 to go deep
🎯 Enter into functions and methods to trace detailed operations
Shift+F8
Step out
Step out of the current function or method.
💡 Hint: Shift to go out
🎯 Step out of the current function and return to the caller
F9
Resume program
Resume program execution until the next breakpoint.
💡 Hint: F9 to resume
🎯 Continue program execution until the next breakpoint
Alt+F8
Evaluate expression
Evaluate an expression while debugging.
💡 Hint: Evaluate expression
🎯 Evaluate arbitrary expressions during debugging to check variable values and calculation results
Alt+F9
Run to cursor
Run the program to the cursor position.
💡 Hint: To cursor
🎯 Run the program directly to the cursor position for efficient debugging
Ctrl+Shift+F8
View breakpoints
View and manage all breakpoints.
💡 Hint: All breakpoints
🎯 Display all breakpoints in a list for condition setting and management