Skip to content

Debug Windows

MathJet provides several data windows for debugging — each focused on a specific aspect of the runtime state.

Manages the list of breakpoints currently set on scripts in the workspace. From the Breakpoints window you can:

  • Enable, disable, and delete existing breakpoints.
  • Add new breakpoints to source files.
  • See the status of every breakpoint in the workspace.

You can always set or clear a breakpoint on a source file by double-clicking the line number in the editor. When execution reaches a breakpoint, the matching entry in the Breakpoints window is highlighted.

Breakpoints are stored in the .mjw workspace file, so they persist across reloads.

Shows the values of any data items you specify — variables, fields of structs / objects, expressions evaluated against the current scope. It’s the conventional “watch window” of any IDE-style debugger, but generalized to any expression in the active language.

Like a hover-over DataTip, but persistent: the watch panel keeps re-evaluating its expressions as you step.

Shows variables in the current evaluation stack frame when execution is paused at a breakpoint. Same layout as the Environment Window, scoped to the local frame instead of the global stack.

Shows the function or procedure calls currently on the stack — the order in which methods and functions led to the current breakpoint. Useful for understanding execution flow during a debugging session.

The Options drop-down inside any data window shares the same controls as the Environment Window:

Two filtering modes:

  • Filter List by Name — only items matching the keyword in the Filter text box are visible.
  • Highlight Values — items whose values match the criterion are highlighted yellow; the rest are greyed out.

In Highlight Values mode the criterion is auto-determined from your input (e.g., 0.5:1.5 becomes “between 0.5 and 1.5”) but can be set manually via Filtering Condition.

Pick from Hierarchical 2D Matrices, Continuous 2D Matrices, Continuous Rows, Continuous Columns, Single Row, or Single Column.

Toggle expand / collapse buttons on each item.

  • Command Recorder — for stepping through previously run statements with reverse-execution; complements the forward-only debugger flow.
  • Environment Window — global-scope twin to Local Variables.