Guardian Programmer's Guide

Table Of Contents
Writing a Command-Interpreter Monitor ($CMON)
Guardian Programmer’s Guide 421922-014
23 - 92
Procedure for Debugging and Testing a TACL
Monitor ($CMON)
Procedure for Debugging and Testing a TACL Monitor ($CMON)
The following steps describe the recommended way to debug or test a $CMON
program.
1. Start your $CMON program and give it a name other than $CMON. Start it under
debug if desired:
1> RUN[D] ZCMON/NAME $CMOO/
See the Inspect Manual or the Debug Manual for general debugging information.
2. Start your TACL macro:
1> run cmootest
PRELOGON^REPLY(0)
REPLY^CODE(0:0) 0
REPLY^TEXT(0:131)
CONFIGREPLY^TEXT(0)
REPLY^CODE(0:0) 1
REPLY^TEXT(0:131)
LOGGEDON^REPLY(0)
REPLY^CODE(0:0) 0
REPLY^TEXT(0:131)
Logon accepted
The display shows the contents of the Prelogon^reply, Config^text^reply, and
Logon^reply messages as returned by the new $CMON process.
Note that when you run your command interface program, CMONCOM, you must also
change its name for the $CMON program.