gpt4 book ai didi

Swift Playground - 如何使用 "thread return -x"

转载 作者:搜寻专家 更新时间:2023-10-30 22:12:52 27 4
gpt4 key购买 nike

当我编写 case 2841001 ... 393200 时调用了以下错误: 我发现了我的错误(第一个数字中有一个额外的数字,复制粘贴错误),但我很乐意了解如何使用“thread return -x”,我应该在哪里配置它?

Playground execution aborted: Execution was interrupted, reason: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0).
The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.

最佳答案

我找不到关于此错误消息的官方文档,但我的解释是:

这是一条 LLDB 错误消息,我们不应该在 Playground 中看到它,因为我们无权访问 Playground 中的调试器。

在常规的 Xcode 项目中,我们可以使用调试器在调试 session 中导航,例如:

(lldb) thread continue

但这在 Playground 中是不可能的,因此在我看来,在 Playground 中看到此错误是 Xcode 错误。

关于Swift Playground - 如何使用 "thread return -x",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36528095/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com