About Monitoring Visual Basic Programs

Related Topics

You can use PureCoverage to monitor code coverage for Visual Basic p-code programs, .NET managed programs, and native-code (unmanaged) programs. PureCoverage can collect coverage data for form events and procedure calls, including calls to other procedures, calls to declared functions in support DLLs, and calls to components.

For Visual Basic p-code programs, and .NET programs, PureCoverage uses Byte Code Insertion (BCI) technology to instrument your code dynamically in memory and collect data directly as the code runs. It does not display the Instrumentation progress dialog box, and does not save copies of the instrumented code.

PureCoverage can collect line level or function level coverage data.

You can run Visual Basic p-code programs:

§    from the PureCoverage standalone interface

§    from the command line

You can run Visual Basic .NET managed programs:

§    from Visual Studio

§    from the PureCoverage standalone interface

§    from the command line

For native-compiled (unmanaged) programs, PureCoverage uses Object Code Insertion (OCI) technology to instrument the programs and monitor coverage at line level or function level, exactly as it does for native-compiled Visual C++ programs. Information that is presented in this help system about monitoring Visual C++ programs also applies to monitoring native-compiled Visual Basic programs.

You can instrument and run native-compiled code programs:

§    from the PureCoverage standalone interface

§    from the command line

For mixed p-code and .NET programs, PureCoverage monitors only one type of code in any run. By default, it monitors code of the type that it encounters first. You can override the default by running PureCoverage from the command line and indicating the type of code that you want to target.

When you exit the Visual Basic program you're monitoring, PureCoverage displays the Coverage Browser window so you can further analyze the data and filter out non-critical procedures. You can use this window, and the other PureCoverage windows and tools, to analyze code coverage. For example, while a program is running, you can monitor the status of its coverage, or pause and resume data recording.

(C) Copyright IBM Corporation 1993, 2010.