Break within the code
By the following response in a StackOverflow thread, we can break to debug within the code:
Use the
__debugbreak()
intrinsic(requires the inclusion of <intrin.h>
).
Using
__debugbreak()
is preferable to directly writing __asm { int 3 }
since inline assembly is not permitted when compiling code for the x64 architecture.
And for the record, on Linux and Mac, with GCC, I'm using
__builtin_trap()
.
留言
張貼留言