Gri: `debug' command

Gri Commands 1: Introduction 2: Simple example 3: Fancy example 4: Running Gri 5: Programming Gri 6: General Issues 7: X-Y Plots 8: Contour Plots 9: Image Plots 10: Examples 11: Handling Data 12: Gri Commands 13: Gri Extras 14: Evolution of Gri 15: Installing Gri 16: Gri Bugs 17: System Tools 18: Acknowledgments 19: License 20: Newsgroup 21: Concept Index | ## 12.7: The ``debug`' Command
    `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`'.