Skip to content

This repository provides a quick start guide for covdbg

License

Notifications You must be signed in to change notification settings

covdbg/quick-start

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

covdbg Quick Start

Welcome to covdbg! This guide will help you get started with installing and using covdbg for code coverage analysis on Windows.

Prerequisites

  • Windows 10 (x64) or Windows 11
  • PDB files for your native applications (required for symbol resolution)
  • A covdbg license (via COVDBG_LICENSE or COVDBG_LICENSE_FILE environment variable) or an open source project where --fetch-license can be used
  • covdbg installed (see Installation section below)

Installation

Follow the Installation Guide to set up covdbg on your system. You can choose between the MSI installer for a machine-wide installation or a portable ZIP archive for a flexible setup.

Build

Ensure your native application is built with debug symbols (PDB files). This is essential for covdbg to map executed code back to source lines.

For this example, we will use a sample application called app.exe with its corresponding app.pdb.

To build the example application using Visual Studio:

  1. Configure the project with CMake.
cmake -S . -B build
  1. Build the project.
cmake --build build --config Debug

After this is done you should have app.exe and app.pdb in the build/Debug directory.

Running covdbg

  1. To collect coverage data while running your application, use the following command:
covdbg --config .covdbg.yaml --output .\build\Debug\app.covdb .\build\Debug\app.exe

If you are working on an open source project and do not have a license set up, you can use the --fetch-license option to automatically obtain a license:

covdbg --fetch-license --config .covdbg.yaml --output .\build\Debug\app.covdb .\build\Debug\app.exe
  1. To convert the coverage data into the LCOV format for use with other tools, run:
covdbg convert --format LCOV --input .\build\Debug\app.covdb --output .\build\Debug\app.lcov

About

This repository provides a quick start guide for covdbg

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages