Chromium `debugger` equivalent, on `gdb` for Cygwin?
问题 How do people trigger a breakpoint on gdb (for Cygwin, specifically) from the very source code? Like when a JS script has the debugger word in it and Chromium dev tools trigger stop for debugging? 回答1: Here's how SDL2 implements this feature: #if defined(_MSC_VER) /* Don't include intrin.h here because it contains C++ code */ extern void __cdecl __debugbreak(void); #define SDL_TriggerBreakpoint() __debugbreak() #elif ( (!defined(__NACL__)) && ((defined(__GNUC__) || defined(__clang__)) &&