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

2023-02-03 18:34:37 +08:00
 reallynyn
以前触发 assert 后都能停在 debug 状态看看 watch ,callstack 啥的。
今天更新完 xcode ,发现 assert 后直接
Assertion failed:
Message from debugger: Terminated due to signal 6
Program ended with exit code: 6
了。。根本在 debug 停不下来。。

去咕狗了一圈也没答案,有没大佬知道怎么改?
651 次点击
所在节点    程序员
2 条回复
iyeatse
2023-02-03 18:47:27 +08:00
下个符号断点试试
reallynyn
2023-02-04 22:33:52 +08:00
breakpoint 和运行时异常都会停留在 debug 界面并定位到运行出错的那行,只有 assert 直接退出 debug 。。
试了下在 Behaviors - Exits unexpectedly - show navigator Debug 没用。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/912983

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX