在程式中新增中斷點

在程式加入


__asm int 3


等同於中斷點的功用,Windows 會跳出 debugger 的選擇視窗。不過它只能用在 x86 platform


另外一個方式更讚


__debugbreak();


這需要 include intrin.h


上面這個可以用在 x86/x64 平台


留言

熱門文章