Chapter 17. Debug Tool and debugging C/C++ 383
6. We can now see that the count has moved to 13991. By pressing the Step Into button, we
seamlessly shift to the main program as shown in Figure 17-25.
Figure 17-25 Debugging the main DLL after returning from the SETUPD DLL
384 Using IBM Application Development Tools for z/OS and OS/390
7. Finally, let’s set a breakpoint in cleanup which is in the CLEAND module. To do this we
pull down the Breakpoints menu and select Set Function.
8. On the Function Breakpoint panel that comes up, as shown in Figure 17-26, fill in the
module as CLEANUPD, the object entry with the correct source file name, the function
cleanup, and select the defer breakpoint box (because this DLL is not yet loaded).
Figure 17-26 Function Breakpoint
Chapter 17. Debug Tool and debugging C/C++ 385
9. Now we press the green arrow. The program now stops at cleanup() as shown in
Figure 17-27.
Figure 17-27 Debugging
10.We can now finish debugging the program.
386 Using IBM Application Development Tools for z/OS and OS/390

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.