and.log

DSA Trace Table

Saved in this browser
Table
Code

Detects declarations, assignments, ++/--, loop variables and function parameters.

Trace Drag headers to reorder · − / + sets importance

Help

What a trace table is

A trace table is how you check a loop by hand. Each column is a variable, each row is one pass through the loop, and you write down what every variable holds at the end of that pass. It is slow on purpose: you catch the off-by-one before the computer does.

Using it

Where your work goes

Everything saves in your browser as you type: the code, the table, the scratch pad and the layout. Nothing is sent anywhere. It stays until you press Clear all, which asks for a second click so it can't happen by accident. Clearing keeps your layout.

Limits

The variable detection is pattern matching, not a parser. It handles the common shapes in JavaScript, Python, C, C++ and Java, but it can miss a variable or pick up something that isn't one. That is what Add column and × are for.