Note: These examples illustrate the use of these debugger commands in Maple's commandline interface. In the standard (graphical) interface, the debugger runs in its own window, with controls for most of the common commands. See Interactive Maple Debugger for details.
>

f := proc(x) global a; local b; a := x; b := x; x^2 end proc:

>

$\mathrm{stopwhen}\left(a\right)$

>

$\mathrm{stopwhen}\left(\left[f\,b\right]\right)$

$\left[{a}{\,}\left[{f}{\,}{b}\right]\right]$
 (2) 
a := 3

f:

2 b := x;


DBG> cont

b := 3

f:

3 x^2


DBG> cont



>

$\mathrm{unstopwhen}\left(\left[f\,b\right]\right)$

>

$\mathrm{stopwhenif}\left(a\,4\right)$

a := 4

f:

2 b := x;


DBG> cont


