Which will result in a crash, I attach my debugger, run the code and if it reaches that line it will break and I can inspect everything I want.
It's easier than adding a __asm(int3) because it's cross platform. On windows for example it's not possible to perform inline assembly in x64 builds, and compiler intrinsics are not portable.
Mostly, if I want a break somewhere I do this:
Which will result in a crash, I attach my debugger, run the code and if it reaches that line it will break and I can inspect everything I want.It's easier than adding a __asm(int3) because it's cross platform. On windows for example it's not possible to perform inline assembly in x64 builds, and compiler intrinsics are not portable.