Operating Condition
Syntax: SET TRACE ON/OFF
Default: OFF
SET TRACE ON will execute TRACE (Interactive Command File Debugger) inside a command file to trace a block of code as defined.
Example 01:
TRACE filename.ext (typical command line option)
Example 02: (in a command file)
your code here ....
SET TRACE ON (this will start the trace within a command file)
Your code here ...
SET TRACE OFF (this will stop the trace within a command file)
Your remaining code here ...
Notes:
•Once you turn OFF the TRACE in an R:BASE session, you will need to turn it back ON.
•(CVAL('TRACE')) will return the current status of TRACE (Values: ON or OFF)
•SHOW TRACE will display the current status of TRACE (Values: ON or OFF)
•Newly created configuration file will also include the option for TRACE ON
•If you want no one to TRACE your code, setting the TRACE option to OFF at the beginning of your code or startup file will disable the TRACE command.