Added August 2022
The DEBUG read-only system variable returns the debug level as set by SET.LIT.
For example:
if DEBUG then
? "--DEBUG level set to ";DEBUG
else
? "--DEBUG not set"
endif
If the above program was compiled as SHOWDEBUG.RUN, then ...
.SET DEBUG
.RUN SHOWDEBUG
--DEBUG level set to 1
.SET DEBUG 9
.RUN SHOWDEBUG
--DEBUG level set to 1
.SET NODEBUG
.RUN SHOWDEBUG
--DEBUG not set
See Also
• SET.LIT