Running code coverage in headless mode by using a daemon

Running code coverage in headless mode by using a daemon starts a daemon listener on one computer and connects a remote debugging session to it. Code coverage output goes to a specified or default directory. Headless mode is ideal for running code coverage on programs that are on different computers in a network without having to connect to the UI workbench daemon. The results are stored by date in the root of the user's home directory under the CC folder.

About this task

Note:
  • Daemon mode is required to run code coverage of CICS® transactions on AIX® or Linux.
  • Code coverage results are stored by date in the root of the user's home directory under the CC folder.
  • For a syntax diagram and a complete list of options, see "Running code coverage in headless mode."

Procedure

  1. Begin by starting a code coverage daemon. The daemon assigns a port number, echo it on the console, and then wait for a connection.
    $ codecov -startdaemon
    Starting code coverage in daemon mode
    Note: You can specify a specific port by adding "=" and the port number or range of port numbers after the -startdaemon option
    Note: You can start multiple daemons each having different options, so long as unique port numbers are used.
  2. From a second computer, start a remote debugging connection to the computer on which you started the daemon, and use the port number that was specified in Step 1.
    $ irmtdbgc -qhost=daemon_host:daemon_port program_name
    Start the debugging session remotely from a secondary host and direct it to the host and port number of the code coverage daemon
  3. When code coverage is completed, a message indicates the results of the code coverage run.
    Output results of code coverage run

Feedback