Monitoring .NET Managed Code from the Command Line

Related Topics

You can run .NET and managed code programs, including managed Visual C++ programs, from the command line as follows:

coverage [<PureCoverage options>] /net <exename or modulename> [<arguments to exename>]

Where

Represents

[<PureCoverage options>]

Options you can specify after the coverage command. For a list of options, click images\shortcut.gif

/net

Required for .NET or managed Visual C++ programs.

<exename or modulename>

The program or module you want to instrument and run.

Note: If you specify a module other than an executable, PureCoverage instruments the module but does not run it.

[<arguments to exename>]

Arguments to pass to the program.

For example, you can type:

coverage /SaveData /net myapp.exe arg1 arg2

PureCoverage instruments and runs Myapp.exe with the specified arguments, arg1 and arg2, and saves the coverage data to a PureCoverage data file (.cfy) without displaying any coverage data windows.

Note:

§                  To run programs from the command line, you must have the RationalPurifyPlus/common directory in your PATH environment variable.

(C) Copyright IBM Corporation 1993, 2010.