Академический Документы
Профессиональный Документы
Культура Документы
IBM trademarks
The following terms are trademarks of International Business Machines Corporation in the United States, other countries, or both:
AD/Cycle CICS CICS DB2 DFSORT IBM IMS IMS/ESA Language Environment MVS RACF Redbooks S/390 System/390 VisualAge VS COBOL II VTAM WebSphere z/OS zSeries
W02
Introduction Starting the debugger for batch LE programs Use a graphical user interface, and
3 15
1. Debug in batch using an LE TEST option in JCL 18 2. Debug in batch using the 'User exit data set' facility in TSO 33 3. Debug in batch using the User exit data set facility with the DTSP plug-in 52
Using Debug Tool's graphical user interface Debug perspective views and navigation 64
W02
184
188 195
202
Creating and editing a DTCN profile using the GUI plug-in 205
W02
TCP/IP
Application Application
z/OS
Remote graphical interfaces are available in Rational Developer for System z and CICS Explorer
It is software that can be installed on your workstation The application running on the mainframe is controlled by the same debugging engine that is used by the 3270 interface Debug Tool displays on your workstation
W02
Download CICS Explorer and the plug-ins from the IBM web site
Download CICS Explorer at www.ibm.com/software/htp/cics/explorer
W02
Perspective
A set of functions and capabilities The Debug Tool GUI is a perspective
View
A window within a perspective providing a specific capability
W02
W02
Batch
CICS
IMS/TM
3270 or GUI
3270 or GUI
3270 or GUI
3270 or GUI
CICS region
IMS/TM region
z/OS
W02 2010 IBM Corporation
This workshop module describes two simple methods to trigger the debugger when an LE program runs in batch
Code an LE 'TEST' option in the run-time JCL, or Use the Debug Tool 'User exit data set' facility
The advanced training module describes how to trigger the debugger for non-LE batch programs
A. Set a trigger, then B. Submit the batch job D. The debugger displays on a Debug Tool terminal or GUI
Batch region
C. When the batch job step runs, the debugger starts because of the trigger
z/OS
10
W02
A. Use DTCN or CADP to set a trigger B. Run the application D. The debugger displays on a CICS terminal or GUI
CICS region
C. When the program runs, the debugger starts because of the trigger
z/OS
11
W02
Dual Terminal mode: Run the application as it normally runs in an online IMS region. Debug Tool is displayed on a Debug Tool terminal or a GUI.
Debug Tool
IMS Application
Transaction
IMS
z/OS
12
W02
Do lab exercise 1
Purpose:
Make notes that will be needed in later exercises
Estimated time:
2 minutes
What to do:
Turn to lab 1 in your workbook, and make these notes: The Lab setup command:
EX '????.ADLAB.INSTALL(LABSETUP)'
The Debug Tool batch load library:
'????.ADLAB.DTXLOAD'
13
IBM Debug Tool for z/OS V10 Basic Mentor Workshop
W02 2010 IBM Corporation
Do lab exercise 2
Purpose:
Create your own copies of sample lab files that you will use in the remaining exercises
Estimated time:
5 minutes
EX '????.ADLAB.INSTALL(LABSETUP)'
14
W02
Introduction Starting the debugger for batch LE programs Use a graphical user interface, and
1. Debug in batch using an LE TEST option in JCL 2. Debug in batch using the 'User exit data set' facility in TSO 3. Debug in batch using the User exit data set facility with the DTSP plug-in
Using Debug Tool's graphical user interface Debug perspective views and navigation
15
W02
Plan your debugging session for batch programs determine how you will run the application
You can debug your batch application as it runs as a batch job
A. Set a trigger, then B. Submit the batch job D. The debugger displays on a Debug Tool terminal or GUI
Batch region
C. When the batch job step runs, the debugger starts because of the trigger
z/OS
Or you can use the 'Debug Tool setup file' online panels to run your program under TSO
TSO
A. Use the online panels to create a setup file and set a trigger B. Run the setup file D. The debugger displays on your TSO terminal or a GUI
TSO region
C. When the setup file runs your program in TSO, the debugger starts because of the trigger
z/OS
16
W02
Plan your debugging session for batch programs select a method to set a debugging trigger
Code a trigger that will cause the debugger start when you run your application
Set a debugging trigger when you want to debug
However, consider using the Debug Tool 'User exit data set' facility
If it is your personal preference If you are using this method with other types of programs (non-batch), such as DB2 stored procedures or IMS transaction programs
It can be simpler to use the same method for all non-CICS programs
For z/OS version 1.7 and earlier, the TEST option is not be supported for IMS and certain other types of programs
17
W02
Introduction Starting the debugger for batch LE programs Use a graphical user interface, and
1. Debug in batch using an LE TEST option in JCL 2. Debug in batch using the 'User exit data set' facility in TSO 3. Debug in batch using the User exit data set facility with the DTSP plug-in
Using Debug Tool's graphical user interface Debug perspective views and navigation
18
W02
Debug in batch using a TEST option in JCL and a graphical user interface
Description
A TEST() option is coded in the application's run-time JCL to trigger the debugger The debugger displays on GUI debugging software on your workstation
19
W02
How to start Debug Tool for a batch job with an LE TEST option in JCL and a remote GUI
dbl click Start GUI debugging software Start GUI debugging software on your workstation on your workstation
You must have remote GUI debugging You must have remote GUI debugging software installed, such as the Debug Tool software installed, such as the Debug Tool plug-in for CICS Explorer, or Rational plug-in for CICS Explorer, or Rational Developer for System zz Developer for System
20
W02
To get the workstation TCP/IP address, click the down arrow next to the connection icon
Open the Debug perspective Open the Debug perspective
click
Click the down arrow next Click the down arrow next to the connection icon to the connection icon
21
W02
click Click "Get Workstation IP" Click "Get Workstation IP" This is the listeners TCP/IP port number This is the listeners TCP/IP port number (8001 in this example) (8001 in this example)
22
W02
This is the TCP/IP address of the workstation. You will This is the TCP/IP address of the workstation. You will need this address and the port number to start the need this address and the port number to start the debugger. Copy by right clicking and selecting Copy. debugger. Copy by right clicking and selecting Copy. Click OK when finished Click OK when finished
click
23
W02
2 2
click
1 1
Click the Open Perspective Click the Open Perspective Open the JCL that will run theselect Other Open the JCL that will run theselect Other icon and application in batch icon and application in batch click
3 3
In the Open Perspective dialog, select System z/OS In the Open Perspective dialog, select System z/OS and click Ok and click Ok
24
W02
If not connected to your system, connect now. If not connected to your system, connect now. Instruction on how to set up a system Instruction on how to set up a system connection is loacted in the z/OS connection is loacted in the z/OS Perspective training module Perspective training module
25
W02
DBL click Double click the JCL member Double click the JCL member to open in the editor to open in the editor
26
W02
TCPIP&address%port: TCPIP&address%port:
denotes a GUI denotes a GUI
Code a TEST option: Code a TEST option: --on the EXEC statement, or on the EXEC statement, or --in a CEEOPTS DD statement in a CEEOPTS DD statement (But not both) (But not both)
27
W02
Right-click and select Right-click and select Submit Job Submit Job
click
Update with the Update with the current IP address current IP address
1 1
RT click
2 2
28
W02
click The Confirm Perspective Switch message The Confirm Perspective Switch message appears, click OK to view the Debug Perspective appears, click OK to view the Debug Perspective
29
W02
The batch program can The batch program can now be debugged now be debugged
30
W02
31
W02
Example: TEST(,,,VTAM%USER123:)
32
W02
Introduction Starting the debugger for batch LE programs Use a graphical user interface, and
1. Debug in batch using an LE TEST option in JCL 2. Debug in batch using the 'User exit data set' facility in TSO 3. Debug in batch using the User exit data set facility with the DTSP plug-in
Using Debug Tool's graphical user interface Debug perspective views and navigation
33
W02
Debug in batch using the 'user exit data set' facility and a graphical user interface
Description
The 'User exit data set' online panels in TSO are used to set a trigger for the debugger.
A special library may be required in STEPLIB or JOBLIB to enable the Debug Tool LE user exit
34
W02
How to start Debug Tool for a batch job with the 'User exit data set' facility and a remote GUI
dbl click Start GUI debugging software Start GUI debugging software on your workstation on your workstation
In this example, the user is In this example, the user is already logged on to TSO already logged on to TSO
You must have remote GUI debugging You must have remote GUI debugging software installed, such as the Debug Tool software installed, such as the Debug Tool plug-in for CICS Explorer, or Rational plug-in for CICS Explorer, or Rational Developer for System zz Developer for System
35
W02
To get the workstation TCP/IP address, click the down arrow next to the connection icon
Open the Debug perspective Open the Debug perspective
click
Click the down arrow next Click the down arrow next to the connection icon to the connection icon
= Listening = Listening Must be in "listening" mode Must be in "listening" mode = Not Listening = Not Listening
36
W02
click Click "Get Workstation IP" Click "Get Workstation IP" This is the listeners TCP/IP port number. This is the listeners TCP/IP port number. (8001 in this example) (8001 in this example)
37
W02
click This is the TCP/IP address of the workstation. This is the TCP/IP address of the workstation. You will need this address and the port You will need this address and the port number to start the debugger. number to start the debugger.
click
38
W02
Follow the menus on your system to Follow the menus on your system to navigate to the Debug Tool panels navigate to the Debug Tool panels
39
W02
Select the Debug Tool user exit data set utility option from the menu
Enter
40
W02
Specify the name of the Debug Tool user exit data set
Specify the correct name of your Specify the correct name of your user option data set user option data set
Enter
Use the default file name unless instructed Use the default file name unless instructed otherwise, or ififa different user ID is needed otherwise, or a different user ID is needed
IBM Debug Tool for z/OS V10 Basic Mentor Workshop
W02 2010 IBM Corporation
41
If the Debug Tool user exit data set does not already exist, this allocation panel is displayed
Use the default settings, unless Use the default settings, unless required by your system required by your system
Enter
42
W02
43
W02
Specify the name of one or more main programs that will trigger the debugger when they run
Specify the names of main programs that Specify the names of main programs that should trigger the debugger when they run should trigger the debugger when they run
F8
44
W02
Select the Remote Select the Remote debug mode option debug mode option
When itittriggers, the When triggers, the debugger will connect to the debugger will connect to the workstation at this address workstation at this address Specify the Specify the debugging profile debugging profile
Enter
45
W02
F3 F3 F3
46
W02
Next, open the JCL that will run the program in batch
If needed, add a special If needed, add a special library to STEPLIB or library to STEPLIB or JOBLIB JOBLIB
Depending on how your program was linked, you Depending on how your program was linked, you may need to add a special Debug Tool library to may need to add a special Debug Tool library to STEPLIB or JOBLIB. The name of the library will STEPLIB or JOBLIB. The name of the library will be provided by your system programmer. be provided by your system programmer.
47
W02
Enter
48
W02
When the step runs, the Debug Tool LE user exit is invoked. When the step runs, the Debug Tool LE user exit is invoked. The exit opens your user exit data set. If the main program The exit opens your user exit data set. If the main program matches any of the program entries in the profile, the matches any of the program entries in the profile, the debugger is triggered and is displayed in the GUI debugger is triggered and is displayed in the GUI
49
W02
The batch program The batch program can be debugged can be debugged from the GUI from the GUI
And you can click your And you can click your TSO terminal to continue TSO terminal to continue working in TSO working in TSO
50
W02
How the Debug Tool user exit data set facility works
How it works: The user exit data set utility saves your debugging profile in a 'user exit data set'
By default, the naming convention is: user-ID.DBGTOOL.EQAUOPTS
The system programmer can customize the naming convention on your system. If that is the case: You need to learn the naming convention Ensure that you name your user exit data set correctly
Debug Tool provides special LE exits. If an exit is enabled when the program runs:
It uses the user ID to determine the name of your data set The exit reads your user option data set If the main program name matches any of the programs in the profile, the exit passes a TEST option to LE to start the debugger
51
W02
Introduction Starting the debugger for batch LE programs Use a graphical user interface, and
1. Debug in batch using an LE TEST option in JCL 2. Debug in batch using the 'User exit data set' facility in TSO 3. Debug in batch using the User exit data set facility with the DTSP plug-in
Using Debug Tool's graphical user interface Debug perspective views and navigation
52
W02
click
Once the DTSP plug-in is installed, Once the DTSP plug-in is installed, access the view by opening the Other access the view by opening the Other view menu view menu
53
W02
dbl click
Select the DTSP Select the DTSP Profiles view Profiles view
54
W02
The DTSP Profiles view is The DTSP Profiles view is displayed near the Debug displayed near the Debug Console view Console view
Right click actions:
Create begin wizard driven profile creation Refresh Reload the profiles list Preferences set system connection information
55
W02
RT click
click
1 1
2 2
In the DTSP Profiles view, In the DTSP Profiles view, right click and select Create right click and select Create
56
W02
click
57
W02
58
W02
Choose the action, create or Choose the action, create or edit, and click Next edit, and click Next
click
59
W02
click
60
W02
The EQUAOPTS debugging profile is The EQUAOPTS debugging profile is added to the list added to the list
61
W02
Opening the EQUAOPTS debugging Opening the EQUAOPTS debugging profile shows the parameters that were profile shows the parameters that were added from the DTSP profile builder added from the DTSP profile builder
62
W02
Do lab exercise 3
Purpose:
Run a program by submitting a batch job Start the debugger on the Debug Tool GUI when the batch job runs
Estimated time:
20 minutes
63
W02
Introduction Starting the debugger for batch LE programs Use a graphical user interface, and
1. Debug in batch using an LE TEST option in JCL 2. Debug in batch using the 'User exit data set' facility in TSO 3. Debug in batch using the User exit data set facility with the DTSP plug-in
Using Debug Tool's graphical user interface Debug perspective views and navigation
64
W02
Debug perspective
65
W02
Display a view
click You can display a view You can display a view by clicking on it's tab by clicking on it's tab
Views Views Support editors and provide ways to navigate Support editors and provide ways to navigate your Workbench your Workbench Can appear by itself, or stacked with other Can appear by itself, or stacked with other views in aatabbed notebook views in tabbed notebook
66
W02
67
W02
Resizing views
dbl click
You can resize panes You can resize panes by dragging the borders by dragging the borders
You can expand a view by You can expand a view by double-clicking on it's tab double-clicking on it's tab
68
W02
dbl click
You can reduce an expanded You can reduce an expanded view by double-clicking it's tab view by double-clicking it's tab
69
W02
drag You can move a view You can move a view to another pane by to another pane by dragging it's tab dragging it's tab
70
W02
Relocated tab
71
W02
click You can reset the windows to You can reset the windows to their default position with their default position with Window -> Reset Perspective Window -> Reset Perspective
72
W02
click
73
W02
74
W02
75
W02
The Debug view shows The Debug view shows currently running programs currently running programs
76
W02
Resume: Run Resume: Run the program to the program to the next the next breakpoint or breakpoint or to the end to the end Terminate: Terminate: End the End the program program Disconnect: Disconnect: from the from the debug engine debug engine
Step Return: Step Return: run until run until return from return from subprogram subprogram Step Over: Step Over: run one run one statement, statement, but step but step over a CALL over a CALL
Step: run one Step: run one statement statement Animated Step: Animated Step: Steps into the Steps into the program program automatically at a automatically at a rate you specify rate you specify
77
W02
Right-click to open menu Right-click to open menu driven breakpoint builder driven breakpoint builder
78
W02
79
W02
80
W02
81
W02
82
W02
83
W02
84
W02
Retrieve a complete list of Retrieve a complete list of commands with CTRL + SHIFT commands with CTRL + SHIFT
CTRL + SHIFT
click
IBM Debug Tool for z/OS V10 Basic Mentor Workshop
W02 2010 IBM Corporation
85
Debugging CICS Applications Creating and editing a DTCN profile using the GUI plug-in
86
W02
The program is not yet initialized The program is not yet initialized
87
W02
click
Click the Step-into Click the Step-into button button
The current position The current position Hint: F5 is the hotkey Hint: F5 is the hotkey for Step-into for Step-into
88
W02
Step-into again
click
Click the Step-into Click the Step-into button button
89
W02
After stepping
90
W02
To search for text, enter the To search for text, enter the text string and click OK text string and click OK
click
2 2
RT click
3 3
click
1 1
91
W02
If found, the text string If found, the text string is highlighted is highlighted
92
W02
Scrolling in a window
SCROLLING Use the scroll bar to navigate within a view Click and drag, or click arrows
drag
93
W02
dbl click
Reset the source view to the current Reset the source view to the current line by clicking the program name line by clicking the program name
94
W02
Double click to set Double click to set aabreakpoint at breakpoint at statement 258 statement 258
dbl click
Scroll down to line 258 Scroll down to line 258
95
W02
click
The breakpoint is also The breakpoint is also displayed in the displayed in the Breakpoints view Breakpoints view
A breakpoint was set A breakpoint was set at statement 258 at statement 258
96
W02
Result of clicking the Resume button The program ran until it reached a breakpoint
97
W02
Right click on a line and select Run To Location to run the program until it reaches the statement
1 1
RT click
click
2 2
W02 2010 IBM Corporation
98
The program ran until ititreached The program ran until reached the RUNTO location the RUNTO location
99
W02
Debugging CICS Applications Creating and editing a DTCN profile using the GUI plug-in
100
W02
Add breakpoints by double clicking in the source view, or with the Breakpoints view menu
2 2
click RT click
1 1
dbl click
101
W02
The breakpoints view pop-up menu gives options for setting breakpoints
The breakpoint set at statement 258 is displayed The breakpoint set at statement 258 is displayed Right click and select additional breakpoints to Right click and select additional breakpoints to create create
1 1
RT click
click
2 2
102
W02
click
Indicate the statement where you Indicate the statement where you want to set aabreakpoint want to set breakpoint Example expression: Example expression: CUST-ID = '22004' CUST-ID = '22004'
click
W02 2010 IBM Corporation
103
104
W02
F8 from the keyboard has the same F8 from the keyboard has the same function as the Resume button function as the Resume button
F8
105
W02
The highlighted line indicates the current The highlighted line indicates the current statement. Statement 312 will be the next statement. Statement 312 will be the next statement to run statement to run
106
W02
Statement breakpoints have been Statement breakpoints have been set at lines 314 and 316 set at lines 314 and 316
dbl click
Remove aastatement Remove statement breakpoint by double clicking breakpoint by double clicking the breakpoint indicator the breakpoint indicator
IBM Debug Tool for z/OS V10 Basic Mentor Workshop
W02 2010 IBM Corporation
107
The breakpoint at 316 was cleared The breakpoint at 316 was cleared
108
W02
RT click
1 1 2 2
click
109
W02
The statement breakpoint is cleared from the source and breakpoints views
The breakpoint at 312 was cleared The breakpoint at 312 was cleared
110
W02
The breakpoint at 314 was cleared The breakpoint at 314 was cleared
click
The selected breakpoint will be removed The selected breakpoint will be removed when the Remove button is pressed when the Remove button is pressed
111
W02
The breakpoint at 314 was removed The breakpoint at 314 was removed
112
W02
Disable a breakpoint
click
Disable aabreakpoint by Disable breakpoint by un-checking the box un-checking the box
113
W02
Debugging CICS Applications Creating and editing a DTCN profile using the GUI plug-in
114
W02
The hover feature: hold the The hover feature: hold the cursor (no click) over a cursor (no click) over a variable in the source view, variable in the source view, and the value is displayed! and the value is displayed!
Note: This option is can be Note: This option is can be activated in the user preferences activated in the user preferences
115
W02
The Variables view shows program variables, and optionally variables referenced by the current statement
click
Step Step Variables referenced by the current statement Variables referenced by the current statement can be displayed in the variables view can be displayed in the variables view
116
W02
After a Step. The variables view can display variables referenced by the current statement
117
W02
Select Automonitor Previous to display variables from both the current and previous statements
1 1
RT click
click
2 2
118
W02
Automonitor Previous displays variables from both the current and previous statements
click
Step Step
119
W02
After a step. The Automonitor refreshes the display as you step and run
The yellow highlighting means the The yellow highlighting means the value has changed while in the value has changed while in the variables window variables window The Automonitor Previous option The Automonitor Previous option displays results automatically as displays results automatically as you step through aaprogram you step through program
120
W02
Select the COBOL Working-Storage Section to view all of the Working-Storage variables
1 1
RT click
click
2 2
121
W02
DBL click
Double click the tab Double click the tab to expand the view to expand the view
The working storage The working storage starts here starts here
122
W02
click
123
W02
DBL click
Double click the tab Double click the tab to shrink the view to shrink the view
124
W02
Right click and select Right click and select Change Value Change Value
1 1
RT click
click
2 2
125
W02
Enter in the new Enter in the new value in the text box value in the text box
1 1
click
2 2
126
W02
The value has now been The value has now been changed for the session changed for the session
127
W02
click
CTRL + F
The selected view The selected view is searched is searched
128
W02
129
W02
click
130
W02
Right click the variable after Right click the variable after highlighting highlighting
1 1
RT click
click
2 2
Tip: Use the Find action to locate Tip: Use the Find action to locate variables in the source variables in the source
131
W02
132
W02
133
W02
1 1
RT click click
2 2
134
W02
135
W02
Select multiple items by Select multiple items by clicking and holding down clicking and holding down the Control key the Control key
click
1 1 2 2
3 3
136
W02
Monitors remain Monitors remain active until you active until you remove them remove them
137
W02
DBL click
138
W02
Monitors remain Monitors remain active until you active until you clear them clear them
Double-click to monitor is an option setting Double-click to monitor is an option setting in Window > Preferences > Run/Debug > in Window > Preferences > Run/Debug > Compiled Debug Compiled Debug
139
W02
click
1 1
Highlight the variable Highlight the variable you want to monitor you want to monitor
2 2
click
W02 2010 IBM Corporation
140
Monitors remain Monitors remain active until you active until you clear them clear them
141
W02
1 1
DBL click
Change the value of Change the value of the variable the variable
2 2
click
W02 2010 IBM Corporation
142
143
W02
Add CUST-REC as aaMonitored Add CUST-REC as Monitored Variable using one of the methods Variable using one of the methods
click
Group variables are indicated by Group variables are indicated by the + symbol. Click ititto expand the + symbol. Click to expand the variable. the variable.
144
W02
145
W02
click
Click the - to collapse Click the - to collapse the group variable. the group variable.
146
W02
The group variable can be The group variable can be expanded or collapsed any time expanded or collapsed any time
147
W02
Enter the set auto on both Enter the set auto on both command in the Debug Console command in the Debug Console
Enter
148
W02
click
Click Step Click Step
The set auto on both command The set auto on both command turns on the auto monitor and turns on the auto monitor and displays ititin the monitors view displays in the monitors view
149
W02
150
W02
Click + drag
Drag and drop the Drag and drop the Monitors view to move itit Monitors view to move
151
W02
152
W02
153
W02
1 1
RT click
click
2 2
154
W02
155
W02
Variables view
Displays information about the variables associated with the stack frame selected in the Debug view Actions in the Variables view
Filter locals
All Automonitor current Automonitor previous COBOL sections
Monitor local variables Monitor memory Change representation Change value Find (selecting from a list of variables)
156
W02
Monitors view
The Monitors view shows variables and expressions that you have selected
From the Source view
Highlight the variable Right Click Select Monitor
157
W02
Debugging CICS Applications Creating and editing a DTCN profile using the GUI plug-in
158
W02
1 1
RT click click
2 2
159
W02
1 1
click
Breakpoint is set for statement 404, Breakpoint is set for statement 404, only when CUST-ID = 11004 only when CUST-ID = 11004
2 2
click
2010 IBM Corporation
160
W02
click
Indicates that the Indicates that the breakpoint is conditional breakpoint is conditional
Resume to run the program Resume to run the program until the breakpoint is triggered until the breakpoint is triggered
161
W02
The program stopped the next time it reached statement 404 and the condition was true
Adding CUST-ID to the monitor Adding CUST-ID to the monitor allows the value to be shown allows the value to be shown
162
W02
Debugging CICS Applications Creating and editing a DTCN profile using the GUI plug-in
163
W02
1 1
RT click click
2 2
164
W02
1 1
click
2 2
click
2010 IBM Corporation
165
W02
Click the Variables tab to view the Click the Variables tab to view the variable value variable value
166
W02
click
Click Resume to run until Click Resume to run until the breakpoint is triggered the breakpoint is triggered
The current value of The current value of the variable is 11 the variable is
167
W02
The breakpoint triggered when The breakpoint triggered when the variable value changed the variable value changed
168
W02
Debugging CICS Applications Creating and editing a DTCN profile using the GUI plug-in
169
W02
click
Step-into Step-into
170
W02
click
SAM2 is added to the program stack SAM2 is added to the program stack The location is at SAM2 initialization The location is at SAM2 initialization
171
W02
click
172
W02
SAM2 returned, and you now back in SAM1 SAM2 returned, and you now back in SAM1 The Source view shows SAM1 code The Source view shows SAM1 code
173
W02
1 1
RT click
click
2 2
174
W02
1 1
click
Fill in the Function or Entry point name Fill in the Function or Entry point name
2 2
click
2010 IBM Corporation
175
W02
click
Click Resume to run the Click Resume to run the program until the breakpoint is program until the breakpoint is triggered triggered
The entry breakpoint has been added The entry breakpoint has been added Deferred: The breakpoint is deferred Deferred: The breakpoint is deferred until the source is loaded until the source is loaded
176
W02
The program stopped at the entry The program stopped at the entry to SAM3 to SAM3
177
W02
Considerations:
With most compilers, the entered program must be compiled for debugging for the entry breakpoint to trigger Exceptions include debugging in disassembly mode Defer the breakpoint if the program is not already loaded
178
W02
Debugging CICS Applications Creating and editing a DTCN profile using the GUI plug-in
179
W02
Terminate: Immediate Terminate: Immediate termination of the application. termination of the application. No more program statements No more program statements run. RC=0 is returned to the run. RC=0 is returned to the environment. environment. Tip: CTRL+F2 is the shortcut Tip: CTRL+F2 is the shortcut
Disconnect: Disconnect Disconnect: Disconnect Debug Tool from the Debug Tool from the application. The program application. The program continues to run from the continues to run from the current location without current location without the debugger. the debugger.
180
W02
click
Click the Terminate button Click the Terminate button CTRL+F2 is the hotkey CTRL+F2 is the hotkey
181
W02
182
W02
Terminate and abend Terminates Terminate and abend Terminates the program and forces an abend. the program and forces an abend. Right click in the Right click in the Debug view Debug view Consider using this option to: Consider using this option to: Capture the abend with IBM Fault Capture the abend with IBM Fault Analyzer for z/OS (if installed) Analyzer for z/OS (if installed) Avoid running subsequent steps in Avoid running subsequent steps in a multi-step job a multi-step job Roll back database updates Roll back database updates
1 1
right click
2 2
click
W02 2010 IBM Corporation
183
Debugging CICS Applications Creating and editing a DTCN profile using the GUI plug-in
184
W02
A LANGX file
Used with assembler, OS/VS COBOL, and COBOL II compiled with NOTEST It is produced by a utility program (EQALANGX) that runs after a compile or assembly
A compiler listing
Used with older PL/I compilers, and COBOL II compiled with TEST
185
W02
The debugger can automatically locate the file for some compilers
Enterprise COBOL and Enterprise PL/I compilers embed the name of the SYSDEBUG file in the load module
The debugger can automatically load it if it exists
Load Library SYSDEBUG Library
member
SAM1
186
W02
Then, if an EQADEBUG DD statement was coded in the JCL, the libraries in it's concatenation are searched Finally, using the Debug Tool GUI Source Look Up Path to indicate the location of debug files
If a matching file is not found automatically, you can enter a command or click the change text file button to specify the correct file or library For LANGX files, also specify an LDD command to load the file
187
W02
Debugging CICS Applications Creating and editing a DTCN profile using the GUI plug-in
188
W02
189
W02
190
W02
Enter the correct file. Enter the correct file. This mapping is not This mapping is not permanent permanent
1 1
click Click Change Click Change text file" text file"
2 2
click
W02 2010 IBM Corporation
191
The source code is The source code is now available now available
192
W02
Enter the SET DEF LISTING + Enter the SET DEF LISTING + location of the source information location of the source information
Enter
193
W02
The source was loaded The source was loaded from the indicated location from the indicated location
The source code is The source code is now available now available
194
W02
Debugging CICS Applications Creating and editing a DTCN profile using the GUI plug-in
195
W02
196
W02
The source view shows The source view shows machine code machine code
197
W02
Enter one library, or a list of Enter one library, or a list of libraries in parentheses libraries in parentheses
When entering library names, When entering library names, do not specify member names do not specify member names or use quotation marks or use quotation marks
Enter
198
W02
Load the LANGX file with an LDD (load debug data) command
It will search the SET DEFAULT It will search the SET DEFAULT LISTINGS library or libraries for the LISTINGS library or libraries for the specified member name specified member name The LDD command loads a The LDD command loads a LANGX file into the debugger LANGX file into the debugger
Enter
199
W02
The source code is The source code is now available now available
The SET DEFAULT LISTINGS The SET DEFAULT LISTINGS setting remains in effect for other setting remains in effect for other programs that are entered programs that are entered
200
W02
LDD member-name
Loads the LANGX file in member-name from the library or libraries specified by the SET DEF LISTINGS setting or an EQADEBUG DD
201
W02
Debugging CICS Applications Creating and editing a DTCN profile using the GUI plug-in
202
W02
Using the debugger is the same in CICS and batch However, the method used to start the debugger is unique in CICS
203
W02
204
W02
Debugging CICS Applications Creating and editing a DTCN profile using the GUI plug-in
205
W02
click
Once the DTCN plug-in is installed, Once the DTCN plug-in is installed, access the view by opening the Other access the view by opening the Other view menu view menu
206
W02
dbl click
Select the DTCN Select the DTCN Profiles view Profiles view
207
W02
The DTCN Profiles view is The DTCN Profiles view is displayed near the Debug displayed near the Debug Console view Console view
Right click actions:
Activate activate a profile Create begin wizard driven profile creation Edit wizard driven profile editing Delete remove a profile Refresh refresh view Preferences edit the DTCN connection information defined at installation
208
W02
RT click
click
1 1
2 2
In the DTCN Profiles view, In the DTCN Profiles view, right click and select Create right click and select Create
209
W02
click
210
W02
Optionally enter Load Optionally enter Load Module or Compile unit pairs Module or Compile unit pairs Select active or inactive Select active or inactive for profile status for profile status
click
211
Ensure that the session Ensure that the session type is set to TCP. The type is set to TCP. The option for mainframe option for mainframe interface, MFI is available interface, MFI is available
Selecting TCP updates Selecting TCP updates the TCPIP address the TCPIP address Ensure that port number Ensure that port number corresponds to the port corresponds to the port number RDz is listening to number RDz is listening to click
212
W02
213
W02
RT click
click
1 1
2 2
In the DTCN Profiles view, In the DTCN Profiles view, right click the profile and right click the profile and and select Edit and select Edit
214
W02
Enter changes to the Enter changes to the DTCN Profile DTCN Profile
215
W02
The profile is added to the DTCN profiles list, The profile is added to the DTCN profiles list, and ready to trap the indicated transaction and ready to trap the indicated transaction
216
W02
The The
217
W02
The DTCN profile triggered the debugger when the application ran
Open a CICS terminal Open a CICS terminal
218
W02
2 2
click
1 1
219
W02
Reference
Visit the IBM Problem determination tools website at www.ibm.com/software/awdtools/deployment/
Get the latest news about IBM problem determination tools products Download product manuals
Recommended Redbook: "Introduction to the IBM Application Development Tools on z/OS and OS/390"
Go to www.redbooks.ibm.com and search for PD Tools It describes the IBM Application Development Tools for z/OS and OS/390 and includes scenarios that show how to use the tools to recognize, locate, and fix errors in application programs using:
IBM Fault Analyzer IBM File Manager IBM Debug Tool IBM Application Performance Analyzer IBM Workload Simulator
220
W02
221
W02