HyperMath

The HyperMath GUI - Debugging Mode

The HyperMath GUI - Debugging Mode

Previous topic Next topic Expand/collapse all hidden text  

The HyperMath GUI - Debugging Mode

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The Debugging mode allows you to debug scripts.  It is activated when the debugger is started from the Authoring mode and remains active until the debugger is stopped. It can also be activated directly when cross-debugging from other products such as HyperMesh or HyperGraph.

To activate the debugger from the Authoring mode, follow these steps:

1.From the Debug menu, select Start Debugging.

debug_menu

2.The Debug menu is displayed in the toolbar.

debug_maintopic_menu

3.Turn on the debugger by clicking Run File, run_file_debug_icon.

hmath_debug_blankgui

HyperMath in Debug mode

In addition to the Authoring mode windows, the following windows become available (note that all windows can be shown/hidden using the View menu):

hmtoggle_plus1Watch Window

From this window, you can monitor variable values while stepping through scripts.  Variable names can be typed in the first column or can be dragged and placed there from the editor.  Alternatively, they can be added by highlighting them in the editor and selecting the context menu option Add Selection to Watch. The variable’s current value (or values) is displayed in the second column and its type is displayed in the third column.  The value can be overwritten by typing a new value.  The changed value is used next.

watch_window

Watch window

hmtoggle_plus1Call Stack Window

Displays the paths traced while executing scripts.  All functions that have been traversed from the main level to the current execution point are shown in the order they have been traversed, with the last function called being at the top.  The item <main>() refers to the top level.  Double-clicking a function goes to the execution point of the call to that function.

call_stack

Call Stack window

hmtoggle_plus1 Breakpoints Window

Displays all breakpoints in the debugging session.  Each breakpoint is listed along with its host file and the line number.  Individual breakpoints can be disabled by deactivating the box next to it.  Breakpoints can also be created and deleted from this window.  Clicking a breakpoint positions the cursor at that location in the editor.
breakpoints

Breakpoints window

hmtoggle_plus1Command History Window

Display all the commands entered at the command window since the last full erase by date.  This allows for quick execution of the commands.

command_history

Command History window

See Also:

The HyperMath GUI - Authoring Mode

The HyperMath Toolbar

Common Icons for Dockable Views