C++26: the new debugging header 0 ▲ Sandor Dargo's Blog 1 hour ago · Tech · hide · 0 comments If you’ve ever needed to hit a breakpoint programmatically in C++, you’ve probably written something like this: #if defined(_MSC_VER) __debugbreak(); #elif defined(__clang__) __builtin_debugtrap(); #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) __asm__ volatile("int3"); #else raise(SIGTRAP); #endif Every major C++ project reinvents this wheel. B... No comments yet. Log in to reply on the Fediverse. Comments will appear here.