• 请不要在回答技术问题时复制粘贴 AI 生成的内容
reallynyn
V2EX  ›  程序员

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

  •  
  •   reallynyn · Feb 3, 2023 · 1489 views
    This topic created in 1219 days ago, the information mentioned may be changed or developed.
    以前触发 assert 后都能停在 debug 状态看看 watch ,callstack 啥的。
    今天更新完 xcode ,发现 assert 后直接
    Assertion failed:
    Message from debugger: Terminated due to signal 6
    Program ended with exit code: 6
    了。。根本在 debug 停不下来。。

    去咕狗了一圈也没答案,有没大佬知道怎么改?
    2 replies    2023-02-04 22:33:52 +08:00
    iyeatse
        1
    iyeatse  
       Feb 3, 2023
    下个符号断点试试
    reallynyn
        2
    reallynyn  
    OP
       Feb 4, 2023
    breakpoint 和运行时异常都会停留在 debug 界面并定位到运行出错的那行,只有 assert 直接退出 debug 。。
    试了下在 Behaviors - Exits unexpectedly - show navigator Debug 没用。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2901 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 03:35 · PVG 11:35 · LAX 20:35 · JFK 23:35
    ♥ Do have faith in what you're doing.