Setting breakpoints in a load module that is not loaded or in a program that is not active
You can browse the source or set breakpoints in a load module that has not yet been loaded or in a program that is not yet active by using the following command:
SET QUALIFY CU load_spec ::> cu_spec ;
In this command, specify the name of the load module and CU in which you wish to set breakpoints. The load module is then implicitly loaded, if necessary, and a CU is created for the specified CU. The source for the specified CU is then displayed in the SOURCE window. You can then set statement breakpoints as desired.
When program execution is resumed because of a command such as GO
or STEP
,
any implicitly loaded modules are deleted, all breakpoints in implicitly
created CUs are suspended, and any implicitly created CUs are destroyed.
If the CU is later created during normal program execution, the suspended
breakpoints are reactivated.
If you use the SET SAVE BPS function to save and restore breakpoints,
the breakpoints are saved and restored under the name of the first
load module in the active enclave. Therefore, if you use the command SET
QUALIFY CU
to set breakpoints in programs that execute as part
of different enclaves, the breakpoints that you set by using this
command are not restored when run in a different enclave.