Useful Debug Tool Commands:
Invoking DEbug Tool in CICS:
Using DTCN command on the CICS region, we can invoke the debug tool. DTCN is a tool used to specify when to activate debug tool for CICS programs.
We can specify the Program name(s), transaction IDS in the DTCN panel.
1)LIST Command- to display the value of a variable
2) AUTO MONITOR ON- to Display the values of variables as the processing is going on.
3) WINDOW SIZE: To increase or decrease the window size
Type WINDOW SIZE on command line & place the cursor upto where you want to increase the size and Hit enter. Window size will be automatically increased/decreased upto the cursor point.
4) MONITOR LIST: To keep a variable in monitor list, it is just like a KEEP in Xpeditor
mo li var1
M line command is to add a variable to the monitor window. You can also use it like m1, m2 etc.
5) F2 - line by line execution
6) F9 - Break Point to Break point Execution
7) F10 - Debug in full screen mode
8) break points:
F6(AT/CLEAR)- Place the cursor on line number and press f6, break point will be set.
F9 - Break Point to Break point Execution
CLEAR AT - removes all the break points
CLEAR AT n1-n4, clears the break points thru line number n1 to n4
C(clear)- T o remove the variable from the monitor window, type c in the line command, it removes that variable.
If you want cleasr all the variable in the monitor type CLEAR MONITOR
H(hex) - to display the variabl ein Hex format
is used to change the control of the program. if the present execution is at 900 line and if you want to go back to 200. then type JUMP to 200. Control goes to 200 line.
This is Just like F6 command in the xpeditor. Program execting at line 100 and you just scrolled thru the program to say 900 and if you want to come back to the line of execution . Just Type Qualify Reset and enter.
This is to go back and see the already executed flow of the program. Eqivalent to xpeditor Monitor all command.
after you type PLAYBACK ENABLE, debug saves all the execution of the program. and If you want to goback and see the flow, just type
Play back start and press F2. it goes back lineby line
PLAYBACK STOP ends the paly back session.
PLAYBACK DISABLE - disables the recording
it displays the subprogram information.
14)QUIT F3 to exit the debug tool
QUIT DEBUG- exits from the debug tool but program continues to execute