A list of paid, free or open source C++ (C plus plus) source code debugging libraries, plugins and tools including test libraries, benchmarking frameworks, loggers, memory leak detection, mocking frameworks and more. Sourced under a creative commons. This list will be updated regularly. Email over the URL, if you wish to be included.

C++ source code debugging libraries

  • backward-cpp – A beautiful stack trace pretty printer for C++. [MIT]
  • benchmark – Google provided small microbenchmark support library. [Apache2]
  • Boost.Test – Boost Test Library. [Boost] website
  • check – Check is a unit testing framework for C. [LGPL-2.1] website
  • doctest – The lightest feature rich C++ single header testing framework. [MIT]
  • Catch2 – A modern, C++-native, test framework for unit-tests, TDD and BDD. [Boost]
  • Celero – C++ Benchmarking Framework. [Apache2]
  • CppUTest – Unit testing and mocking framework for C/C++. [BSD-3-clause]
  • CUTE – C++ Unit Testing Easier. [LGPL3]
  • CMocka – unit testing framework for C with support for mock objects. [Apache2]
  • CppBenchmark – Performance benchmark framework for C++ with nanoseconds measure precision. [MIT]
  • CppUnit – C++ port of JUnit. [LGPL2]
  • CTest – The CMake test driver program. [BSD]
  • dbg-macro – A dbg(…) macro for C++. [MIT]
  • DebugViewPP – Debug logging viewer. [Boost]
  • Deleaker – A tool for resource leak detection, including memory, GDI and handle leaks.
  • FakeIt – Simple mocking framework for C++. [MIT]
  • fff – A micro-framework for creating fake C functions. [MIT]
  • Google Mock – A library for writing and using C++ mock classes. [BSD]
  • Google Test – Google C++ Testing Framework. [BSD]
  • ig-debugheap – Multiplatform debug heap useful for tracking down memory errors. [BSD]
  • libtap – Write tests in C. [GPL2]
  • microprofile – Profiler with web-view for multiple platforms. [Unlicense]
  • MinUnit – A minimal unit testing framework for C self-contained in a single header file. [MIT]
  • Mockator – Eclipse CDT plug-in for C++ Seams and Mock Objects.
  • nanobench – Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20. [MIT] website
  • Nanotimer – A simple low-overhead cross-platform timer class for benchmarking. [zLib] website
  • Nonius – A C++ micro-benchmarking framework. [CC]
  • Remotery – Single C File Profiler with Web Viewer. [Apache2]
  • snitch – Lightweight C++20 testing framework. [Boost]
  • Touca – Open-source regression testing system that you can self-host. [Apache2] website
  • UnitTest++ – A lightweight unit testing framework for C++. [MIT/X Consortium license]
  • Unity – Simple Unit Testing for C. [MIT]
  • utest.h – Single header unit testing framework for C and C++. [Unlicense]
  • μt – C++20 single header/single module, macro-free μ(micro)/Unit Testing Framework. [Boost]
  • VLD – Visual Leak Detector. A free, robust, open-source memory leak detection system for Visual C++.

Tags: c++, open source, c plus plus, c++ tools, c++ plugins, c++ libraries, c plus plus tools, c plus plus plugins, c plus plus libraries, test libraries, benchmarking frameworks, loggers, memory leak detection, mocking frameworks, test frameworks, c++ test libraries, c++ benchmarking frameworks, c++ loggers, c++ memory leak detection, c++ mocking frameworks, c++ test frameworks

Image: Unsplash License.

Portions of this text under: MIT license