Windows Tools Documentation

Microsoft Developer Network

App Verifier

App Verifier is a runtime verification tool that helps developers detect and diagnose application compatibility issues and runtime errors. It monitors applications for common programming errors that can lead to instability, security vulnerabilities, or incorrect behavior.

Key Features

How it Works

App Verifier works by instrumenting the application's code at runtime. It intercepts calls to system APIs and checks for common error patterns. When a potential issue is detected, App Verifier logs detailed information that can be used for debugging.

Getting Started

  1. Download App Verifier: App Verifier is typically included as part of the Windows Software Development Kit (SDK).
  2. Install App Verifier: Follow the installation instructions provided with the SDK.
  3. Launch App Verifier: You can launch App Verifier from the Start Menu or by running appverif.exe.
  4. Configure Application: In App Verifier, add the executable of the application you want to test.
  5. Select Verification Tests: Choose the specific tests you want to enable for your application. It's recommended to start with a basic set and gradually enable more.
  6. Run Your Application: Launch your application as you normally would. App Verifier will run in the background.
  7. Analyze Results: If App Verifier detects any issues, it will generate a report or break into the debugger, providing call stacks and other diagnostic information.

Common Verification Tests

App Verifier offers a variety of tests, including:

Best Practices

Further Reading