Xcode equivalent of ' __asm int 3 / DebugBreak() / Halt?

后端 未结 7 1366
予麋鹿
予麋鹿 2020-12-14 07:51

What\'s the instruction to cause a hard-break in Xcode? For example under Visual Studio I could do \'_asm int 3\' or \'DebugBreak()\'. Under some GCC implementations it\'s a

相关标签:
7条回答
  • 2020-12-14 08:44

    http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeProjectManagement/090_Running_Programs/chapter_11_section_3.html

    asm {trap}            ; Halts a program running on PPC32 or PPC64.
    
    __asm {int 3}         ; Halts a program running on IA-32.
    
    0 讨论(0)
提交回复
热议问题