Gri Commands
|
12.7: The `
|
`debug [.n.]|[clipped values in draw commands]|off' |
With no optional parameters, sets the value of `..debug..
' to 1.
(Normally, `..debug..
' is 0.) You may use `..debug..
' in if
statements, etc. Note that `..debug..
' is also set to 1 when gri
is invoked with the commandline switch `-d
'.
With `.n.
' specified, `..debug..
' is set to `.n.
'; a
value of zero for `.n.
' turns debugging off, while 1 turns it on.
Higher values may be used for deeper debugging, if you choose:
if {rpn ..debug.. 2 <} # Code to do if ..debug.. is greater than 2. end if |
Note that you can assign to `..debug..
' as you can to any other
variable; `debug .n.
' is equivalent to `..debug.. = .n.
'.
With the `clipped
' option, Gri prints any clipped data encountered
during any `draw ...
' commands, EXCEPT in the case of
`postscript
' clipping, where no check is possible. (Note that
`..debug..
' is not affected.)
All these forms of debugging are cancelled by `debug off
'.