I want to find the programs compiled
using the debug view turned on
. I have a requirement where I have first to check if the debug is ON for a particular program then only I need to run the Code coverage (CODECOV
) command. Please suggest any approach to get this information.
You can run the
DSPPGM
command on a program to get thedebug info
. This will vary and depend upon the program type such as:For OPM programs with CLP and RPG program attributes:
debug info is not available
Observable information.......................*UNOBS
debug info is available
Observable information.......................*ALL
For ILE programs with CLLE and RPGLE attributes:
You can check it under the
DETAIL *MODULE
Debug Information is not available
Creation optimization debug
Module library attribute date level data
PGM1 TESTLIB RPGLE 09/12/24 *NONE *NO
Debug Information is available
Creation optimization debug
Module library attribute date level data
PGM1 TESTLIB RPGLE 09/12/24 *NONE *YES
Also, when you run the
STRDBG
command on a program if that program has debug info, then source code gets displayed for that program otherwise, nothing will be displayed.