Run your code and watch variables, lists, pointers and the call stack drawn step by step. When it breaks, step back and see how it got there.
Each language has its own online compiler: write, run, then press Step to watch it.
Most online compilers only print the result. This one draws every step.
Values, list cells, where each pointer points, the call stack growing and unwinding: drawn at every step. Drag the slider to go back to any step.

Out of bounds, a dangling pointer, dividing by zero: the run stops on that line and says why in plain words. Drag back to see how it got there.

Export a run as a GIF, send a link, or copy an embed code into your slides or blog.

Python Tutor is the classic step-by-step visualizer, and we admire it. Here is what each does best.
| Kodewick | Python Tutor | |
|---|---|---|
| Site languages | English, Chinese, Spanish, Portuguese, Japanese, French, German | English |
| Programming languages | Python, C, C++, Go, SQL, turtle | Python, Java, C, C++, JavaScript |
| Where the code runs | In your browser: results right away | On their server |
| What comes next | Free courses, challenges and an algorithm visualizer | Focused on visualizing |
| Learning Java or JavaScript | Not yet | A better fit |
Free30 lessonsBeginnerC courseFrom printf to pointers and structs. Every example steps, with the same pointer arrows you just saw.Start lesson 1 →
Free31 lessonsBeginnerPython courseFrom zero, watching every variable change.Start lesson 1 →Algorithm visualizerBinary search, sorting, recursion, linked lists, step by step.See the algorithms →ChallengesPractice right away; step through what went wrong.Practice →No. Open the page to write, run and step through code; it is kept in your own browser.
Both step through code. Kodewick also runs Go, SQL and turtle, runs the code in your browser, is in seven languages, and leads on to free courses and challenges. For Java or JavaScript, Python Tutor is the better fit.
Yes. Pointers are drawn as arrows to the variable or array cell they point at; malloc’d memory and linked lists are drawn too, and reading out of bounds or a dangling pointer stops on that line.
Yes. Type the input before you run; each read takes the next line.
When stepping, up to 20 million steps in Python, 5 million in C and Go, and 10 million in C++: far more than any exercise needs.
Yes. Open it in your phone’s browser to write code and step through it.
Yes. Share lets you export a GIF, copy a link, or copy an embed code for your page.
Free, no sign-up, right in your browser.