Inspecting Programs

Predict what your algorithm will do, then use Inspect to compare your prediction with the values recorded while it runs. A recorded table shows what happened; your explanation should say why.

Start inspecting

Sign in and enable program runtime in Account → Preferences → Tools. Runtime applies to Core Pseudly; selecting an extension makes execution unavailable. Guests can still read this guide and download a manual tracing worksheet.

  1. Open a familiar program, such as Example 10, For totals and steps. Predict its values and output before running.
  2. Open the Inspect tab and choose Desk check. Add a probe beside the assignment you want to examine, or connect a WATCH block where its expression should become available.
  3. Use Run to execute or resume, Step to advance one execution beat, Pause to pause, and Stop to end the run. A beat can combine related actions, so it is not always one written line.
  4. Compare the recorded values with your prediction. Change one part of the algorithm and repeat.

Run shows the output transcript. Inspect shows values. Switching tabs or inspection modes keeps the same execution and input draft. Complete input prompts in any view; rejected input can be retried without starting again.

Speed offers Slow, Fast and Live. Slow and Fast animate execution at different rates. Speed: Live removes progressive animation delay; Step and BREAKPOINT still work. This speed setting is separate from the Live inspection mode.

Use the Debug flyout

Open Code → Debug. Its two groups separate optional debugging instructions from tools for inspecting the running program.

BlockPurpose
DEBUG ON / OFFChanges whether instructions inside IF DEBUG execute. It does not enable the Inspect tab and is not required for probes, WATCH or a standalone BREAKPOINT.
IF DEBUGContains extra instructions that execute only while DEBUG is ON. Use it for optional diagnostic PRINTs. Keep the program’s essential calculations outside this claw.
WATCH expressionAdds an expression column when execution reaches the block. Later recorded rows evaluate that expression without changing the program’s values. Its header contains only the expression.
BREAKPOINTPauses when reached, in any runtime view and at every speed. Use Run or Step to continue. Inside IF DEBUG it is reached only when DEBUG is ON. A breakpoint alone does not add a desk-check row.
Actual Pseudly SET x TO 4, WATCH x greater than 3, BREAKPOINT and PRINT Ready blocks
SET x TO 4
WATCH x > 3
BREAKPOINT
PRINT "Ready"
A watch adds a column; a breakpoint pauses before the following PRINT. SET x TO 4 makes x > 3 true.

WATCH and BREAKPOINT are saved with the blocks. In an ordinary exported Python program, inspection instructions do not reproduce the browser’s inspection interface. Older programs may contain CHECKPOINT comments. They remain compatible, but CHECKPOINT is no longer offered in the flyout; use gutter probes for recording and BREAKPOINT for pausing.

Choose probes and watches

Probes add rows. Click an eligible line number in the pseudocode gutter to toggle a manual probe. A solid gray marker identifies your probe. On each completed visit to that instruction, Inspect records a row. Put a probe inside a loop to see successive values. Probes record; they do not pause execution.

Dotted markers identify automatic recording at completed INPUT, PRINT and WATCH instructions. You cannot toggle those automatic markers. Subprogram BEGIN also records a call-entry row, including the current arguments in its parameter columns. Rejected input does not create a completed-input row. Events at the same instruction and call can share one row.

Manual probes remain after Finish, Stop or an error and can be reused on another run. Safe line-number changes follow the original instruction. Changing, deleting or detaching that instruction, or making its identity ambiguous, can remove its probe. New, Load, Import, another example or a browser reload clears the program’s temporary probes. They are not saved in your blocks file or account program.

Watches add columns. Connect a WATCH block at the point where its expression should begin to be watched. Use variables, literals, arithmetic, comparisons or Boolean expressions. Calls that run learner code, request input, generate randomness or have side effects are excluded. An unavailable value or an unsafe expression is reported without stopping the program. There are limits on expression size and evaluation work.

A useful combination is WATCH total * 2 before a loop and a probe on SET total TO total + count inside it. The probe supplies the rows; the watch supplies the extra calculated value. For a prediction exercise, calculate these values yourself first.

Choose Desk check or Live

Desk checkLive
The default. Keeps a history of completed recording points, so you can compare values over time.Shows the latest captured globals and active call frames, including parameters and local values.
Rows remain after Finish, Stop or an error, until you clear the table, start another run or replace the program.Useful while paused or stepping. On normal completion, the final state and highlight remain for about two seconds and then clear. An error preserves its originating failure state for inspection.
Follow latest moves to the newest page and bottom of the table. Switch it off to review earlier rows while recording continues.Follow current call follows the active call within the Live view. Switch it off to keep your chosen scroll position.

Live globals are listed alphabetically. Separate call frames help distinguish local variables in different calls; recursive calls include their call identity and depth. Live is a snapshot, not a replacement for the retained Desk check history.

Read and manage the table

A new table starts with Step and Output. As variable declarations execute, their columns appear immediately after Step in declaration order. Parameters appear on their first call and receive the current argument values as BEGIN executes. Watch columns follow the variables; Output stays last. Step numbers count recorded rows, not source lines or every executed instruction.

Values belong to the recorded moment and call scope. A blank cell can mean a variable was not yet declared or is outside that call; an empty string is shown with quotation marks. A completed input cell is marked INPUT: followed by its value. Later rows show its ordinary value. Output records PRINT activity, including PRINT W/O NEWLINE; use Run for the complete transcript.

Use the column selector when you need a smaller table. Headings and value cells are centred; Output is left aligned. Wide tables scroll horizontally inside their own viewport. Longer histories use pages of 100 rows.

The top line contains Table: Download / Clear / Follow latest. Download saves the displayed columns as CSV. Clear removes history only and is disabled while a run is active, including while paused or waiting for input. Clearing history does not delete probes or WATCH blocks or clear the Run transcript. Starting another run replaces the previous history, so download first if you want to compare runs.

Download and trace by hand

Program → Export → Deskcheck (.docx) makes a blank manual tracing worksheet from the current program without running it. It is available to guests too. Its title uses your program name and version. The landscape sheet includes Name and Date, Step 1–10, variable and watch headings where available, and Output. Wide programs use additional column panels; a small program fits on one page where possible.

The Word worksheet is for prediction and manual tracing; it does not contain the recorded execution history. Use Inspect → Table: Download for that history as CSV. CSV contains text and values, so it cannot carry the worksheet’s page layout or cell styling. Spreadsheet applications can format the downloaded data.

CSV downloads use the displayed Step, variable, watch and Output columns, without internal Run Status or Recording columns. A download before Finished, or one whose recording reached a limit, is marked partial in its filename. A stopped or failed run is useful evidence but is not a complete trace.

Limits and troubleshooting

History recording is bounded to 2,000 rows and about 8 MiB, with up to 24 selected columns and 24 watches. Check the recording status before relying on a download: a recording limit can stop additional rows while the program continues. Values and previews are bounded too; long or complex values may be shortened.

Pseudly

a bridge between blocks and code

Version 0.7.2 — 24 November 2026

© Pseudly 2025-26

Release Notes

Full History

Credits

Pseudly is developed by Peter Hurwood. Thanks to the maintainers of the software used to build and run it.

Licence and copyright notices · JavaScript · Python · Font Awesome Free · Quill and bundled components