dbg-macro

A C++ debugging macro for convenient print-style debugging

brewmacoslinux
Try with needOr install directly
Source

About

Dbg(…) macro for C++

Commands

dbg-macro

Examples

Include the header in your C++ project to enable Dbg() macro$ brew install dbg-macro
Use Dbg() macro in C++ code to debug variable values$ #include <dbg.h> int x = 42; dbg(x); // Prints: [file.cpp:5] x = 42
Debug expressions and function calls with the macro$ dbg(x + y, calculate_value(), vector.size());