# A dbg(...) macro for C++

> A dbg(…) macro for C++.

Page: https://nowfound.app/launch/a-dbg-macro-for-c

- Launched: 2019-09-21
- Launch-day votes: 162, 51 comments; #129 of 2,877 launches that month (top 4%)
- Website: [github.com](https://github.com/sharkdp/dbg-macro), online when checked 2026-09-18
- Category: [Life & fun](https://nowfound.app/c/life-and-consumer.md)
- Pricing: Free. Free and open source (checked 2026-11-24 on its site)
- Forecast: 93% chance its website is still online in November 2031 (99% in November 2027, 96% in November 2029). Made 2026-11-29 and not revised. Typical launch of 2019: 80%. [Method](https://nowfound.app/forecast.md)
- Originality: 57/100 (familiar idea). More original than 57% of products launched in 2019. On its launch day the archive already held 1 similar product; 3 products like it have launched since.

## In plain words

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 straightforward way to output debug information without manual formatting, making it useful for developers who want faster, clearer visibility into program execution and variable states.

_Written by AI from its launch page and website, 2026-09-12._

## What it does, from its own words

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

## Does a similar job

- [A C++ dump func. that can print multi-D](https://nowfound.app/launch/a-c-dump-func-that-can-print-multi-d-vectors-maps-tuples-and): A C++ library for debugging purposes that can print any variable, even user-defined types. (2023-09-30, 82 votes, free, forecast: 96% online in 2031, github.com)
- [Online C/C++ to assembly visualizer \[Weekend](https://nowfound.app/launch/online-c-c-to-assembly-visualizer-weekend-project): This is a weekend project that provides an online tool for visualizing how C and C++ code converts to assembly language. (2012-09-23, 149 votes, forecast: 80% online in 2031, assembly.ynh.io)
- [Dlg](https://nowfound.app/launch/dlg-zero-cost-printf-style-debugging-for-go): Dlg is a Go debugging library designed for developers who prefer printf-style debugging. (2025-07-27, 64 votes, free, forecast: 94% online in 2031, github.com)
- [Debugger that generates video visualizations](https://nowfound.app/launch/debugger-that-generates-video-visualizations-for-algorithm-l): A simple Python debugger and profiler that generates animated visualizations of program flow, useful for algorithm learning. (2020-01-28, 102 votes, free, forecast: 91% online in 2031, github.com)
- [Visualize Data Structures in VS Code](https://nowfound.app/launch/visualize-data-structures-in-vs-code): An extension for VS Code that visualizes data during debugging. - vscode-debug-visualizer/extension at master · hediet/vscode-debug-visualizer (2020-08-28, 509 votes, free, forecast: 96% online in 2031, github.com)
- [A small virtual machine written in C](https://nowfound.app/launch/a-small-virtual-machine-written-in-c): "interesting" VM in C. Let's see how this goes. (2014-08-04, 212 votes, free, forecast: 87% online in 2031, github.com)

All alternatives: https://nowfound.app/alternatives/a-dbg-macro-for-c.md

## For the maker of A dbg(...) macro for C++

- Feature it at the top of the NowFound home page for $19 for 30 days, marked sponsored: https://nowfound.app/feature/a-dbg-macro-for-c
- Free: put the badge on the product's own site and it joins Featured products after the paid spots, and this page links to the site with a normal link search engines follow. HTML for the footer: `<a href="https://nowfound.app/launch/a-dbg-macro-for-c"><img src="https://nowfound.app/badge/a-dbg-macro-for-c.svg" alt="A dbg(...) macro for C++ on NowFound" height="32"></a>`

Source: [Show HN post](https://news.ycombinator.com/item?id=21034615)
