-
-
Save kmdarshan/cce1cd56ea8def205afbfe5517b6f8e3 to your computer and use it in GitHub Desktop.
stopping debugger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef _MSC_VER | |
// windows OS | |
# define BREAK_HERE() __debugbreak() | |
#elif defined(ARCH_X64) || defined(ARCH_X86) | |
// linux or iOS based systems | |
# define BREAK_HERE() __asm__("int $3") | |
#else | |
# define BREAK_HERE() raise(SIGTRAP) | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment