美文网首页
signal causes debugger to stop a

signal causes debugger to stop a

作者: skogt | 来源:发表于2019-02-19 15:13 被阅读0次

问题:最近在做iOS UI卡顿监控,为了具体定位到卡顿的函数栈,使用到了pthread_kill,但是debug状态下,gdb会被signal干扰

下面是两种解决方案,第二种其实也是第一种的扩展

  • process handle -s0 -n0 -p1 SIGUSR1

pthread_kill in IOS causes debugger to stop app.

  • 通过设置symbolic breakpoint来执行上述"process handle" command
    具体配置如下:
    symbolic breakpoint image

相关文章

网友评论

      本文标题:signal causes debugger to stop a

      本文链接:https://www.haomeiwen.com/subject/trqfyqtx.html