Listing parked z/OS Debugger debug sessions on a z/OS host

You can use the attach type of configuration to list debug sessions that are parked on a z/OS® machine and connect to any debug session available in the selector.

  1. Open the launch.json file by using Command Palette > Debug: Add configuration. Start of changeYou can select Z Open Debug: Launch and debug a z/OS application from the list of configuration to create a default template. You can get the list by clicking Add configuration.End of change
  2. Create a List parked z/OS Debugger debug sessions launch configuration entry, if none exists:
        {
            "type": "zOpenDebug",
            "request": "attach",
            "name": "List parked IBM Z Open Debug sessions",
            "connection": { "type": "zowe", "name": "zOpenDebug" }
        },
    Note: When you connect to Remote Debug Service that is configured in secure mode with invalid, expired, or self-signed certificates, specify "ignoreCertificateErrors": true in conjunction with "secure": true.
  3. In the Run view, launch the entry by using one of the following methods:
    • Select Command Palette > Debug: Select and Start Debugging > List parked z/OS Debugger sessions.
    • In the Run view top bar, select List parked z/OS Debugger sessions from the drop-down list and click the Start Debugging icon. Alternatively, press F5.
  4. In the DEBUG CONSOLE panel, the applications that are started under the control of z/OS Debugger and parked with the Remote Debug Service are listed.
    Parked debug sessions listed in the DEBUG CONSOLE panel
  5. Connect to a listed debug session that is parked on the z/OS host.
    • If you are using Z Open Debug 2.0.0 or later with z/OS Debugger 15.0.4 or later, a selector pops up with a list of available debug sessions. You can connect to any session in the list and start debugging.
      Parked debug sessions in the pop-up selector
    • If the selector is not available, you can use the launch type of configuration to connect the Z Open Debug user interface to a parked debug session.
This configuration type supports the following attributes:
Connection
Reference a zOpenDebug Zowe connection profile.
allSessions
Filter the list of debug sessions so that only "parked" debug sessions are shown. The default is to show both "parked" and "active" debug sessions.
trace
Enable diagnostic tracing. Specifying "trace": true produces a trace of debug communications between the IDE and Remote Debug Service.
terminateAndAbend
Specify that an ABEND should be issued when the debug session is terminated from the UI. When "terminateAndAbend": true is specified, the program abends when the terminate button is pressed, and the operating system treats the program as though it crashed, which might cause the system to roll back transactions or database calls.
The following attributes are deprecated. Start of changeSpecifying these attributes overrides settings in Zowe connection profiles.End of change
host
Specify the z/OS hostname directly.
port
Specify the port for Remote Debug Service.
secure
Specify that secure connections should be used.
ignoreCertificateErrors
Ignore problems with the TLS certificates used by Remote Debug Service, such as self-signed or expired certificates.
Warning: Using this attribute might cause the client to ignore all certificate errors from all servers.
user
Filter the list of debug sessions to show only those owned by the specified user. The default is "*", which displays sessions for all users.
password
Specify the password to be used for authentication when you connect to the parked debug session. By default, a password prompt is displayed for each invocation of the launch configuration.