What has changed in the xcode7 debugger is that I can no longer view variables with "po" / Swift

ok what has changed in xCode7 / Swift so that I can no longer use the "po frame" to view the contents of a CGRect anylonger? Print status works very well in code. Why can't I view this in the debugger console, how am I used to?

var frame = self.myLabel.frame

frame.origin.x = self.startingFrame.origin.x + translation.x
frame.origin.y = self.startingFrame.origin.y + translation.y

print(frame)

self.myLabel.frame = frame

still in the debugger, if I break the statement self.myLabel.frame = frame and use po (or p or print) in the debugger, I get:

(164.0, 323.0, 41.6666666666667, 20.3333333333333)
(lldb) po frame
error: <EXPR>:1:1: error: use of unresolved identifier 'frame'
frame
^~~~~
(lldb) p frame
error: <EXPR>:1:1: error: use of unresolved identifier 'frame'
frame
^~~~~
(lldb) print frame
error: <EXPR>:1:1: error: use of unresolved identifier 'frame'
frame
^~~~~
(lldb) 
+4
source share
2 answers

Xcode 7.1. 7.2 - . , Structs, C/ObjC Swift, (, , , .)

+3

Xcode 7.2 ( ObjC). .

ivar , . "po foo.frame", .

0

Source: https://habr.com/ru/post/1612255/


All Articles