Suddenly I have started to get this message randomly ( but pretty much often)
expression produced error: warning: /var/folders/53/0z4yfqt16tvbcn0z7f2385n80000gn/T/expr3-d271e2..swift:3:9: warning: initialization of variable '$__lldb_error_result' was never used; consider replacing with assignment to '_' or removing it var $__lldb_error_result = __lldb_tmp_error ~~~~^~~~~~~~~~~~~~~~~~~~ _
when I try to type something like this in console:
po myObject
So, the console prints only message above, rather than it gives me something useful... How to fix this, and what caused it?
lldb has changed in Xcode 10.2. Apple recommends use of 'p' or more recently 'v' to view the values of variables.
from the Xcode 10.2 Release Notes
The LLDB debugger has a new command alias, v, for the “frame variable” command to print variables in the current stack frame. Because it bypasses the expression evaluator, v can be a lot faster and should be preferred over p or po. (40066460)
There is also good information on this in the LLDB Tutorial in the section named Examining Stack Frame State.
The frame variable command will also perform "object printing" operations on variables (currently we only support ObjC printing, using the object's "description" method. Turn this on by passing the -o flag to frame variable:
(lldb) frame variable -o self
(SKTGraphicView *) self = 0x0000000100208b40
<SKTGraphicView: 0x100208b40>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With