Programming

Python Variable Tracker — Track State Changes

Track every Python variable through a whole run: when it was created, each value it took and on which line, whether its type changed, and a chart of numeric values over time. Variables inside functions are tracked per call.
Real Python 3.11 in your browserNothing is uploaded

Code

Input for input() — one line per call

Runs real Python 3.11 (Pyodide) in your browser. Ctrl+Enter runs; after running, use ← and → to step.

Step through

Press Run to execute the code. The first run downloads the Python runtime (about 10 MB, once per visit).

Programs that run longer are stopped, so an infinite loop cannot freeze the page.

How to use this tool

  1. 1Paste Python code or pick an example.
  2. 2Press Run to execute it with real Python in your browser.
  3. 3Pick a variable to see its complete history and, for numbers, a chart.
  4. 4Click any change to jump to that moment in the run.

Frequently asked questions

Yes, separately for each call — for example factorial() call 3 ▸ n — so recursive calls do not mix their values.

Any time the value’s representation changes: assigning a new value, or mutating a list, dict or object in place.

No. The tool runs real Python 3.11 (Pyodide, Python compiled to WebAssembly) inside your browser. The first run downloads the runtime (about 10 MB) once per visit; your code never leaves your device.