To use the online debugger with a DC PL/I program, perform the following steps:
ENTER NEXT TASK CODE: debug
DEBUG>
DEBUG> debug pliprog DEBUG PLIPROG DEBUG> DEBUGGING INITIATED FOR PLIPROG VERSION 1 DEBUG>
DEBUG> at $ + @a9a AT @A9A AT> @A9A ADDED DEBUG>
DEBUG> exit
ENTER NEXT TASK CODE: deptmod
AT OFFSET @A9A IN PLIPROG EXPRESSION @BDE DEBUG>
list %:r13 + @31c 32 LIST %:R13 + @31C 32 001DB7F4 F3F2F0F0 F0F0F0F4 C8C5D9C2 C5D9E340 *32000004HERBERT * 001DB804 4040C3D9 C1D5C540 40404040 40404040 * CRANE *
If your program contains any nested procedures or begin blocks, you will need to navigate the chain of dynamic storage areas (DSAs) to obtain the correct variable-storage base address. To navigate the DSA chain for nested procedures or begin blocks, list the contents of register 13 to determine the DSA for the current level of nesting:
list %:r13 LIST %:R13 001C7A30 84200000 001C7948 00000000 5E422A20 *D........... ...*
For subsequent levels of nesting, perform the following step:
list @1c7948 LIST @1C7948 001C7948 84200000 001C74D8 00000000 4E4227EC *D......Q....+...*
DEBUG> list 1c74d8 + @31c 32 LIST 1C74D8 + @31C 32 001C77F4 F3F2F0F0 F0F0F0F4 C8C5D9C2 C5D9E340 *32000004HERBERT * 001C7804 4040C3D9 C1D5C540 40404040 40404040 * CRANE *
To examine variables defined as BASED storage, perform the following steps:
DEBUG> list %:r13 + @d4 LIST %:R13 + @D4 001499E0 00149AC8 00000000 00000000 00000000 *...H............*
DEBUG> LIST @149ac8 16 00149AC8 F1F1F1F1 C4C5D7E3 00000000 00000000 *1111DEPT........*
DEBUG> resume
DEBUG> quit QUIT QUIT DEBUGGER ENTER NEXT TASK CODE:
Copyright © 2013 CA.
All rights reserved.
|
|