The following error was invoked when I wrote case 2841001 ... 393200 :
I figured out my error (having an extra digit in the first number, copy paste error), but I would love to learn how to use "thread return -x", where do I configure that?
当我写了案例2841001时,调用了以下错误... 393200:我想出了我的错误(在第一个数字中有一个额外的数字,复制粘贴错误),但我很想学习如何使用“线程返回-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.
1 个解决方案
#1
2
I can't find an official document about this error message but my explanation is:
我找不到关于此错误消息的官方文档,但我的解释是:
This is an LLDB error message, and we shouldn't see this in a Playground, because we don't have access to the debugger in a Playground.
这是一个LLDB错误消息,我们不应该在Playground中看到这个消息,因为我们无法访问Playground中的调试器。
In a regular Xcode project, we could use the debugger to navigate in the debug session, like:
在常规的Xcode项目中,我们可以使用调试器在调试会话中导航,例如:
(lldb) thread continue
But this is not possible in a Playground, so seeing this error in a Playground is, in my opinion, an Xcode bug.
但这在Playground中是不可能的,因此在我看来,在Playground中看到这个错误是一个Xcode错误。
#1
2
I can't find an official document about this error message but my explanation is:
我找不到关于此错误消息的官方文档,但我的解释是:
This is an LLDB error message, and we shouldn't see this in a Playground, because we don't have access to the debugger in a Playground.
这是一个LLDB错误消息,我们不应该在Playground中看到这个消息,因为我们无法访问Playground中的调试器。
In a regular Xcode project, we could use the debugger to navigate in the debug session, like:
在常规的Xcode项目中,我们可以使用调试器在调试会话中导航,例如:
(lldb) thread continue
But this is not possible in a Playground, so seeing this error in a Playground is, in my opinion, an Xcode bug.
但这在Playground中是不可能的,因此在我看来,在Playground中看到这个错误是一个Xcode错误。