A library for programmatically breaking into debuggers
Break into the debugger programmatically
debugbreak
$ #include <debugbreak.h> int main() { debug_break(); return 0; }
$ gcc -o myprogram myprogram.c -ldebugbreak
$ gdb ./myprogram