Debug is an addition to the definitions in script system\main\debug.ijs, which can be loaded as follows:
load ''''debug''''
This script is loaded when you press Ctrl-K to run Debug.
There are three new verbs in the script:
dbg | turns Debug on (dbg 1) or off (dbg 0) |
dbstop | sets stops on all lines in a list of names |
dbstopme | sets stops in current definition |
To turn Debug on, enter:
dbg 1 NB. same as Ctrl-K
To turn Debug off and disable suspension, enter:
dbg 0 NB. same as closing Debug window
This is a convenient way of setting stops on all lines in a list of names, for example:
dbstop 'accpay intm vrep'
is equivalent to:
dbss (dbsq''), ';accpay *:*;intm *:*;vrep *:*'
Using dbstop does not change any other stop settings, except that to clear all stops, enter:
dbstop''
This is a convenient way of setting stops on the current definition. If the argument is non-zero (with same meaning as the if. control word) and suspension is on, then all lines in the current definition are stopped, for example:
foo=: 3 : 0 dbstopme y.>2 NB. stop foo if y.>2 ... )
Using dbstopme does not change any other stop settings.