Permanently configuring LLDB (in Xcode 4.3.2) not to stop on signals

后端 未结 1 979
傲寒
傲寒 2020-11-28 22:33

I\'m trying to get LLDB (running in Xcode 4.3.2 with an OS X application) to not stop on certain signals. If I enter

process handle SIGUSR2 -n true -p true -s

相关标签:
1条回答
  • 2020-11-28 23:19

    In case anyone else ever has this question, I finally solved it by adding a breakpoint in NSApplicationMain() (for plain C programs, main() would of course work as well).

    I set the breakpoint action to process handle SIGUSR2 -n true -p true -s false, and enabled the "Automatically continue after evaluating" option.

    Xcode 4 Breakpoint Screenshot

    If anyone has a more elegant solution, I'd be happy to hear.

    0 讨论(0)
提交回复
热议问题