>>  <<  Ndx  Usr  Pri  JfC  LJ  Phr  Dic  Rel  Voc  !:  wd  Help  User

Overview

Debug is an extension to the facilities provided by the debug foreign conjunction. After Debug is turned on, then if execution is halted because of a stop or execution error, the Debug window shows the current execution environment.

Panels in the Debug window show the code being executed, the stack, and values of various names:

For an introduction to Debug, see the Debug lab.

For information on the debug foreign conjunction, see the Dictionary entry for the 13!:x family, and script system\main\debug.ijs.

Load Debug

To load Debug, use menu Run|Debug..., or press Ctrl-K when the J session has focus.

This loads the debug.ijs script, displays the Debug window, enables suspension (dbr 1), and sets the debug latent expression (dblxs) to run the verb debug in the jdebug locale.

Then run your program. If execution is halted because of a stop or execution error, the execution state is shown in the Debug window. Several commands let you step through the execution session.

To turn Debug off and disable suspension, close the Debug window.

Debug Settings

Debug is active when suspension is on, and the debug latent expression is set. The Debug window is displayed when Debug is activated, so this provides a visual indication that Debug is active.

However, if you change either of these directly, for example, by entering:

   dbr 0

then Debug will no longer be active, even if the Debug window is still displayed. You can reactivate Debug by pressing Ctrl-K.


>>  <<  Ndx  Usr  Pri  JfC  LJ  Phr  Dic  Rel  Voc  !:  wd  Help  User