372 Using IBM Application Development Tools for z/OS and OS/390
6. We can then set a function level breakpoint at the entry to BioRythm::ok() using the
following steps:
a. Select the Breakpoint menu.
b. Select Set Function.
c. Click the arrow under Function to get a list of all available functions.
d. Select OK and the panel in Figure 17-16 is displayed.
Figure 17-16 Setting a breakpoint on Biorythm::ok
Chapter 17. Debug Tool and debugging C/C++ 373
7. Now we run to the breakpoint by pressing the small green sideways triangle on the
command icon line. Remember to switch back to the TSO screen to fill in the information
when prompted as shown in Figure 17-17.
Figure 17-17 Terminal with data entry
374 Using IBM Application Development Tools for z/OS and OS/390
8. Control will return to the remote debugger once the birth date has been entered as shown
in Figure 17-18.
Figure 17-18 Remote debugger stopped at the breakpoint
Chapter 17. Debug Tool and debugging C/C++ 375
9. Click to the monitor window and expand bio so you can see the age field as shown in
Figure 17-19.
Figure 17-19 Bio expanded
376 Using IBM Application Development Tools for z/OS and OS/390
10.Or alternatively, if we did not already have the monitor of the variable bio available, a user
could go to the source window and highlight the word “age” and then use the left mouse
button to get options and select a program monitor as shown in Figure 17-20.
Figure 17-20 Adding a program monitor for age

Get Using IBM Application Development Tools for z/OS and OS/390 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.