V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
reallynyn
V2EX  ›  程序员

新版本 xcode 怎么触发 assert 后停留在 debug 状态?

  •  
  •   reallynyn · 2023-02-03 18:34:37 +08:00 · 630 次点击
    这是一个创建于 420 天前的主题,其中的信息可能已经有所发展或是发生改变。
    以前触发 assert 后都能停在 debug 状态看看 watch ,callstack 啥的。
    今天更新完 xcode ,发现 assert 后直接
    Assertion failed:
    Message from debugger: Terminated due to signal 6
    Program ended with exit code: 6
    了。。根本在 debug 停不下来。。

    去咕狗了一圈也没答案,有没大佬知道怎么改?
    2 条回复    2023-02-04 22:33:52 +08:00
    iyeatse
        1
    iyeatse  
       2023-02-03 18:47:27 +08:00
    下个符号断点试试
    reallynyn
        2
    reallynyn  
    OP
       2023-02-04 22:33:52 +08:00
    breakpoint 和运行时异常都会停留在 debug 界面并定位到运行出错的那行,只有 assert 直接退出 debug 。。
    试了下在 Behaviors - Exits unexpectedly - show navigator Debug 没用。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2831 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 806ms · UTC 14:34 · PVG 22:34 · LAX 07:34 · JFK 10:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.