Example: Entering CP Commands When You Trace Events (CMD/NOCMD)

Unless you specify otherwise, CP stops your virtual machine after every event it traps. When CP stops your virtual machine, it displays
CP READ
at the bottom right of your display screen. You can then enter any CP commands. To restart the program you are tracing, enter BEGIN.

Use the CMD option if there is a CP command or commands that you want to run every time CP traps an event. Use NOCMD to delete CMD fields from existing trace traps.

Note: If you use the CMD option, it must be the last option you specify.
For example, if you want CP to display the contents of storage location 20 every time it traps an instruction, enter:
trace instruction cmd display 20
Or, if you want CP to display the contents of your general registers every time it traps an instruction, enter:
trace instruction cmd display g