I've had long-standing problems getting lldb to see local variables in many situations. For example, in this CBPeripheral delegate method,
func peripheral(peripheral: CBPeripheral, didDiscoverCharacteristicsForService service: CBService, error: NSError?) {
if case let .DiscoverCharacteristics(periph) = btState {
if periph == peripheral {
btState = .Connected(service)
}
}
connectPeer()
}
the debugger doesn't see self or self.btState or even peripheral or periph. It doesn't matter if you try to access them through the Xcode UI or through the lldb command line. The specific error is "use of unresolved identifier '***'".
Is there any way around this situation? It's getting pretty frustrating. (This is Xcode 7 beta 3, btw.)