Debug Windows
MathJet provides several data windows for debugging — each focused on a specific aspect of the runtime state.
The debug windows
Section titled “The debug windows”Breakpoints
Section titled “Breakpoints”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.
Debug Watches
Section titled “Debug Watches”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.
Local Variables
Section titled “Local Variables”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.
Call Stack
Section titled “Call 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.
Common options
Section titled “Common options”The Options drop-down inside any data window shares the same controls as the Environment Window:
Filter list and values
Section titled “Filter list and values”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.
Matrix layout for multi-dimensional data
Section titled “Matrix layout for multi-dimensional data”Pick from Hierarchical 2D Matrices, Continuous 2D Matrices, Continuous Rows, Continuous Columns, Single Row, or Single Column.
Enable / disable data outlining
Section titled “Enable / disable data outlining”Toggle expand / collapse buttons on each item.
See also
Section titled “See also”- 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.