GitShow/sharkdp/dbg-macro
sharkdp

dbg-macro

A dbg(…) macro for C++

by sharkdp
cppdebuggingmacropretty-printing
Star on GitHubFork

C++

3.2k stars273 forks19 contributorsQuiet · 7mo agoSince 2019v0.5.1MIT

Meet the team

See all 19 on GitHub →
sharkdp
sharkdp193 contributions
winwinashwin
winwinashwin15 contributions
hmenke
hmenke9 contributions
DerekCresswell
DerekCresswell8 contributions
fuchengjie
fuchengjie6 contributions
Harry-Chen
Harry-Chen3 contributions
ShikChen
ShikChen3 contributions
YarikTH
YarikTH2 contributions

Languages

View on GitHub →
C++95.1%
CMake4.9%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 7mo ago
See all on GitHub →
ded-furby
build: require CMake 3.10+OpenPR

Closes #142. Summary raise the minimum CMake version from 3.5 to 3.10 remove the deprecation warning emitted by newer CMake releases when dbg-macro is consumed via FetchContent Testing not run locally ( is unavailable in this environment) relies on the repository CI matrix to validate the build across platforms and toolchains

ded-furby · 3mo ago
sharkdp
Add support for simple structs?OpenIssue

It would be cool to somehow add support for simple s/es like We would somehow have to iterate over all members... without modifying to original struct definition. Not sure if this is possible in C++ (without reflection).

sharkdp · 1y ago

Recent fixes

View closed PRs →
wyf027
build: require CMake 3.10 to silence deprecation warningMergedPR

Summary Bumps from 3.5 to , matching CMake's recommended syntax. This removes the deprecation warning when dbg-macro is pulled in via . Fixes #142 Test plan [x] One-line change [ ] Existing CI (if any) Made with Cursor

wyf027 · 3mo ago
Toby-Shi-cloud
Need support to cpp20 viewsClosedIssue

Motivation Views introduced in cpp20 are convenient! Problems Currently, the dbg-macro would treat views as containers. This can cause following issues. 1. pretty_print for views cannot be compiled using GCC 13 (maybe a bug of gcc) Because makes ambiguous (I don't know why). See https://godbolt.org/z/e9Ea61E8s This is okay using gcc14+ or clang. 2. pretty_print for views that do not model const-range cannot be compiled. Because is has no member . (In order to provide the amortized constant time complexity.) Solution Add a specialization for pretty_print to those model like following:

Toby-Shi-cloud · 7mo ago
Toby-Shi-cloud
Add support for C++20 viewsMergedPR

resolve #145 (and also #142 maybe) need update ci to test this pr

Toby-Shi-cloud · 7mo ago
Structured data for AI agents

Repository: sharkdp/dbg-macro. Description: A dbg(…) macro for C++ Stars: 3233, Forks: 273. Primary language: C++. Languages: C++ (95.1%), CMake (4.9%). License: MIT. Topics: cpp, debugging, macro, pretty-printing. Latest release: v0.5.1 (2y ago). Open PRs: 1, open issues: 8. Last activity: 7mo ago. Community health: 42%. Top contributors: sharkdp, winwinashwin, hmenke, DerekCresswell, fuchengjie, Harry-Chen, ShikChen, YarikTH, Baltoli, shilangyu and others.

·@ofershap

Replace github.com with gitshow.dev