Pause Python code on the exact line you want to inspect
Step over, step into, step out, and continue through your program flow
View current variable values while code is paused in the debugger
Debug project files and step into your own helper modules
Use the Python debugger online from any modern browser
Python code runs locally in your browser by default using WebAssembly
A Python debugger helps you understand what your program is doing line by line. Set a breakpoint before a calculation, run the debugger, and inspect how variables change as each statement executes.
Python Playground is useful when a print statement is not enough. Start with the debugger demo, then use the Python Code Runner for script execution or the Online Python Compiler for quick browser-based Python runs.
Start with a small script, click the editor gutter to set a breakpoint, then run the debugger. When execution pauses, use the debug controls to continue or step through the program without leaving the browser.
A debugger is most useful when the code runs but the result is wrong. Pause before the suspicious line, inspect variables, and step forward until the state changes in a way you did not expect.
See how variables, loops, and functions behave while code executes
Step through sorting, search, recursion, and data structure examples
Inspect intermediate values while parsing or transforming data
A Python debugger is a tool that pauses code execution so you can inspect variables, move through code line by line, and understand why a program behaves a certain way.
Yes. Python Playground includes an online Python debugger with breakpoints, step controls, and variable inspection in the browser.
Yes. You can set breakpoints in your Python code, start a debug session, and pause execution on the lines you want to inspect.
Yes. When code is paused, the variables panel shows current values so you can inspect state while stepping through your program.
No. The debugger runs in a modern browser using a Pyodide-powered Python runtime, so you can debug Python code without installing Python locally.
You can step into your own project files. The debugger skips Python standard library and package internals so sessions stay focused on your code.
The debugger is focused on your own project files. It avoids stepping through standard library and installed package internals, which keeps debug sessions faster and easier to follow.
Stop the active debug session before editing code. This keeps the source shown in the editor aligned with the code currently running in the debugger.
Debugging runs in the browser-based Python runtime by default. If you use Pro cloud sync, selected playground data can be synced, but code execution and debugging are still browser-based.
Run Python code directly from any browser tab with our Chrome extension