debugbreak icon indicating copy to clipboard operation
debugbreak copied to clipboard

break into the debugger programmatically

Results 12 debugbreak issues
Sort by recently updated
recently updated
newest added

This PR makes `debugbreak` prefer `__builtin_debugtrap()` wherever it's available (clang). The code snippet I've used is @jwakely's work, I've added a signoff to my commit message to mark the original...

You use `defined(__APPLE__)` to decide whether to use `__builtin_debugtrap` but that's wrong, because only Clang supports that built-in, but GCC defines `__APPLE__` too. The minimal fix would be to just...

For C++ they should be just `inline` not `static`, otherwise you get (probably harmless) ODR violations when calling the `debug_break` function from function templates or inline functions.

Also fix typos in macro names.

I tried to use `debugbreak.h` in a "SEGGER Embedded Studio for ARM (Nordic Edition)" project, built using the NRF Connect SDK (NCS), which ultimately uses the `arm-none-eabi` gcc toolchain. I...

This is a very useful library and would be great to see it in conan.

Hi, would it be possible to add an equivalent of IsDebuggerPresent to test if the process is actually being debugged? Thanks

While I seem able to use this library as intended on an M2 based mac with Xcode... I seem to be having trouble with both GDB and LLVM when running...