Swift Playground - How to use "thread return -x"

When writing case 2841001 ... 393200 :, the following error was caused: I found out my error (having an additional number in the first number, copy the patch error), but I would like to know how to use "thread return -x", where to configure it?

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.
+4
source share
1 answer

I cannot find an official document about this error message, but my explanation is:

This is an LLDB error message, and we should not see this on the playground because we do not have access to the debugger on the playground.

In a typical Xcode project, we can use the debugger to navigate in a debugging session, for example:

(lldb) thread continue

, - , -, Xcode.

+1

All Articles