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
- 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
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.
- 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
- When code coverage is completed, a message indicates the
results of the code coverage run.