This lesson is locked
A short preview is available. Purchase once for lifetime access.
Beginner · 19:49
Debugging: STRDBG, Breakpoints, and Watch Variables
Reading code finds most defects; the rest need the program observed while it runs. This lesson covers the IBM i system debugger: compiling with a debug view, starting a session with STRDBG, setting unconditional and conditional breakpoints, stepping into and over calls, displaying and changing…
What you'll be able to do
- 1Compile a program with a debug view suitable for source-level debugging, and explain the effect of OPTION(*SRCSTMT) and OPTION(*NODEBUGIO).
- 2Start and end a debug session with STRDBG and ENDDBG, and explain what UPDPROD(*NO) protects.
- 3Set unconditional and conditional breakpoints, and step through code into and over procedure calls.
- 4Display and change variables with EVAL, including qualified subfields, array elements, and hexadecimal views, and use WATCH to stop when storage changes.
- 5Debug a program running in a batch job using STRSRVJOB, and plan a debug session from a defect report before starting it.
Create your account
Takes a few seconds — you'll be right back here after.