Remote debugging in standard mode
z/OS® Debugger obtains information (called debug information) it needs about a compilation unit (CU) by searching through the following sources:
For remote debugging in standard mode:
- To debug Enterprise COBOL for z/OS V3.4
and V4 programs, specify the location of the listing files by adding
the
EQAV4LSTDD name or theEQA_DBG_V4LISTenvironment variable. Adding either of those values makes the listing files available to the debugger. For example:
or//EQAV4LST DD DSN=USER123.COBOL.LISTING,DISP=SHRENVAR("EQA_DBG_V4LIST=//'USER123.COBOL.LISTING'")Note:EQAV4LSTis only supported in batch. - To debug Enterprise COBOL for z/OS V6.2 and later programs with the debug information in side files, complete the following steps:
- To generate the side files, compile the COBOL program with the
TEST(SEPARATE)compiler option, and specify theSYSDEBUGDD name to store the generated side files. - Make the side files available to the debugger by specifying the location of the side files with
the
EQADEBUGDD name or the EQA_DBG_SYSDEBUG environment variable. For example:
or//EQADEBUG DD DSN=USER123.COBOL.SYSDEBUG,DISP=SHRENVAR("EQA_DBG_SYSDEBUG=USER123.COBOL.SYSDEBUG")
EQASRCEDD name or the EQA_DBG_SRCE environment variable. This is used with data sets that contain only source files. For example:
or//EQASRCE DD DSN=USER123.COBOL.SOURCE,DISP=SHRENVAR("EQA_DBG_SRCE=USER123.COBOL.SOURCE") - To generate the side files, compile the COBOL program with the
- To debug z/OS C and C++,
and 31-bit Enterprise PL/I for z/OS programs with separate side files, make
the side files, which contain debugging information, available to
the debugger by adding the
EQADEBUGDD name to specify the location of the side files. For example://EQADEBUG DD DSN=USER123.PLI.DEBUG,DISP=SHRTo locate source files for C or C++ programs, add theEQASRCEDD name to specify the location of the application source files. For example://EQASRCE DD DSN=USER123.CPP.SOURCE,DISP=SHRz/OS Debugger uses the source code compiled by 31-bit Enterprise PL/I for z/OS to display the source. Thus, that source code needs to be in a cataloged data set accessible to the debugger.
To debug 64-bit Enterprise PL/I for z/OS programs, z/OS debugger also uses the source code compiled by Enterprise PL/I for z/OS to display the source. If the source file no longer exists in the location that was provided as the input to the compiler, add theEQADEBUGDD to specify the location of the application source files. For example://EQADEBUG DD DSN=USER123.PLI64.SOURCE,DISP=SHR - To debug HLASM programs, specify the location of the SYSADATA files
by adding the
EQAADATADD name or the EQA_DBG_SYSADATA environment variable. Adding either of those values makes the debugging information available to the debugger. For example:
or//EQAADATA DD DSN=USER123.HLASM.SYSADATA,DISP=SHR
z/OS Debugger uses the source code assembled by HLASM to display the source. Thus, that source code needs to be in a cataloged data set accessible to the debugger.ENVAR("EQA_DBG_SYSADATA=//'USER123.HLASM.SYSADATA'") - In the CICS® subsystem, you can specify an environment
variable using
ENVAR(as shown in the previous text, except remove any //) in one of the following ways:- In DTCN, specify the environment variable in the Any other valid Language Environment options field of the z/OS Debugger CICS Control - Menu 2 menu.
- In CADP, specify the environment variable in the Other Language Environment Options section.
- If you are using
DBMto establish the connection with a remote system, you can modify the timeout value used by Debug Probe to communicate withDBMby specifying an environment variableEQA_DBG_DBMTIMEOUT. For example:
The default is 300 seconds.ENVAR("EQA_DBG_DBMTIMEOUT=200")