I can't see the value of a variable in the debugger

I am switching completely to Swift and I have a debugger problem.

The problem is I can't see the value of the variable and the class with the breakpoint.

When I enter this command into the lldb console, for example the po self

answer is:

error :: 1: 1: error: using unresolved identifier "self"

My project is compiled in debug mode. I have Xcode 6.3.1 and I am using swift 1.2.

+3


source to share


1 answer


This is quite controversial, but sometimes it works as this screenshot shows:

enter image description here



I don't know why it doesn't work sometimes, but I agree that sometimes it doesn't work! I often have to use println(self)

in code to find out what's going on.

0


source







All Articles