nowfound

Dev tools · alternatives · 2026

24 alternatives to A dbg(...) macro for C++

A dbg(…) macro for C++. Contribute to sharkdp/dbg-macro development by creating an account on GitHub.

A debugging macro for C++ that prints variable names and values during development. Designed for programmers working with C++, it simplifies the inspection of code during testing and troubleshooting. The tool offers a… Below are 24 products that do a similar job, ranked by how close each is in meaning and then by launch-day votes. A dbg(...) macro for C++ launched in 2019; newer entries below may have overtaken it.

  1. 1

    Quick and dirty print debugging. Contribute to J-M0/dbg.h development by creating an account on GitHub.

    2023 · github.com · its alternatives →

  2. 2

    A C++ library for debugging purposes that can print any variable, even user-defined types. - philip82148/cpp-dump

    2023 · github.com · its alternatives →

  3. 3OC
  4. 4

    Hey HN, I tend to use printf-style debugging as my primary troubleshooting method and only resort to gdb as a last resort. While I like its ease of use printf debugging isn't without its annoyances, namely removing the print statements once you're done. I used to use trace-level logging from proper logging libraries but adding trace calls in every corner quickly gets out of control and results in an overwhelming amount of output. To scratch my own itch I created dlg - a minimal debugging library that disappears completely from production builds. Its API exposes just a single function, Printf…

    2025 · github.com · its alternatives →

  5. 5

    A simple Python debugger and profiler that generates animated visualizations of program flow, useful for algorithm learning. - CCExtractor/vardbg

    2020 · github.com · its alternatives →

  6. 6

    An extension for VS Code that visualizes data during debugging. - vscode-debug-visualizer/extension at master · hediet/vscode-debug-visualizer

    2020 · github.com · its alternatives →

  7. 7

    "interesting" VM in C. Let's see how this goes. Contribute to tekknolagi/carp development by creating an account on GitHub.

    2014 · github.com · its alternatives →

  8. 8

    This project is inspired by some of the asserts in Unreal engine. Due to reliance on core_intrinsics it is necessary to develop using nightly Rust, but there are stubs in place so a production build will not require nightly. I recently released version 0.2 which includes no_std support and adds optional log message arguments to the ensure macro.

    2024 · github.com · its alternatives →

  9. 9

    Hi HN! Korean high school senior here, about to start CS in college. I built a browser engine from scratch in C++ to understand how browsers work. First time using C++, 8 weeks of development, lots of debugging—but it works! Features: - HTML parsing with error correction - CSS cascade and inheritance - Block/inline layout engine - Async image loading + caching - Link navigation + history Hardest parts: - String parsing(html, css) - Rendering - Image Caching & Layout Reflowing What I learned (beyond code): - Systematic debugging is crucial - Ship with known bugs rather than chase…

    Jan 2026 · github.com · its alternatives →

  10. 10

    I built Staying – a tool that instantly turns your code into interactive animations with no setup required. Just write or paste your code and hit "Visualize". No installs, no accounts, no configuration. *Supports*: Python, JavaScript & experimental C++

    2025 · staying.fun · its alternatives →

  11. 11

    A simple way to output stack traces when a program crashes in C++, using the new C++23 <stacktrace> header - TylerGlaiel/Crashlogs

    2023 · github.com · its alternatives →

  12. 12

    A little help for programmers, who wants to run C&#x2F;C++ code in the browser. (This is my second attempt to show it, first time I got banned bcoz of my personal page domain, I don't really understand it why is is suspicious.)

    2022 · github.com · its alternatives →

  13. 13

    Modified C++ Inspired by the paper "Some Were Meant for C" by Stephen Kell, I decided to show that it's possible to iterate C++ to be safer, more explicit, and less error-prone. Here's a possible starting point: I didn't invent a new language or compiler, but took the world's best compiler, clang, and modified it to begin iterating towards a new furture of C++. Naming things is hard, so I call this 'Modified C++'. Some of the following could be implemented as tooling in a linter or checker, but the idea is to update the compiler directly. I also wanted to learn more about clang. This…

    2022 · github.com · its alternatives →

  14. 14

    A C++ HTML template engine that uses compile time HTML parsing - rep-movsd/see-phit

    2017 · github.com · its alternatives →

  15. 15

    Hi HN, I have created a webpage that displays all C++ features since C++20 in a simple, searchable table. It is intended to serve as a quick reference for C++ developers, whether as support for cross-platform development or simply to track the current support status out of curiosity. I created it as a simpler, more structured, and more up-to-date alternative to the cppreference compiler support site. Please note that the page intentionally does not list LWG and CWG papers. This might change as I am continually updating the site and trying out new ideas. Questions, feedback and suggestions…

    2025 · cppstat.dev · its alternatives →

  16. 16

    I've created cppmatch, a lightweight, header-only C++ library that brings Rust-inspired pattern matching and error handling to C++. It tries to imitate the functionality of the questionmark (?) operator in C++ by using a macro that uses the gcc extension https:&#x2F;&#x2F;gcc.gnu.org&#x2F;onlinedocs&#x2F;gcc&#x2F;Statement-Exprs.html This allows to create exceptionless code with non-intrusive error-as-value that unlike Exceptions, makes it clear which kinds of error a function can generate and forces you to handle (or ignore) them. The ? operator translates to *expect* To handle the errors I…

    2025 · github.com · its alternatives →

  17. 17

    Header only debug module for c++11. Contribute to vzaccaria/debug.hxx development by creating an account on GitHub.

    2014 · github.com · its alternatives →

  18. 18AI

    I built this software to help users who need to do static code analysis for C&#x2F;C++ codebase. This can help you to explore the ASTs interactively. It can replace the Clang ast dump completely and also you can search the code&#x2F;ASTs in a structual way. For example you can search a function which matches specific name or number of paremeters.

    May 2026 · uvic-aurora.github.io · its alternatives →

  19. 19

    Next-level syntax for C-like languages :). Contribute to kiselgra/c-mera development by creating an account on GitHub.

    2018 · github.com · its alternatives →

  20. 20

    Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum - Neargye/nameof

    2019 · github.com · its alternatives →

  21. 21

    Query C++ codebases using SQLite. Contribute to frabert/ClangQL development by creating an account on GitHub.

    2021 · github.com · its alternatives →

  22. 22CI

    Tiny c++ interpreter

    2017 · treefrogframework.github.io · its alternatives →

  23. 23AS
  24. 24

    A minimal stack-based VM. Contribute to codr7/liblg development by creating an account on GitHub.

    2020 · github.com · its alternatives →

Also compare

Ranked by how close each launch is in meaning, then by votes. Prices were read from each product’s own site when checked and can change. Refine with your own description →