2

为什么我在调试器中看不到特定变量的值?

这是数据类型:

struct hashTag {
    var parseID:String?
    var blguID:String
    var owner:String?
    var ownerImage:UIImage?
    var displayName:String?
    var tagDescription:String?
    var startTimeStamp:NSDate?
    var endTimeStamp:NSDate?
    var accessPermission:hashtagPermission = .greenUnlockPublic
    var geo:geoStatus?
    var coordinates:CLLocationCoordinate2D?
    var radiusInMeters:CGFloat?
    var duration:Int?
    var discoverableBy:[String]?
    init(blissID blugID:String, owner:String, ownerImage:UIImage, displayName:String, accessPermission:hashtagPermission, startTimeStamp:NSDate) {
        self.blguID = blugID
        self.owner = owner
        self.ownerImage = ownerImage
        self.displayName = displayName
        self.accessPermission = accessPermission
        self.startTimeStamp = startTimeStamp
    }
    init(blissID blugID:String, location coordinates:CLLocationCoordinate2D, radius:CGFloat, duration:Int) {
        self.blguID = blugID
        self.coordinates = coordinates
        self.radiusInMeters = radius
        self.duration = duration
    }
    init(blissID blugID:String, radius:CGFloat, duration:Int) {
        self.blguID = blugID
        self.radiusInMeters = radius
        self.duration = duration
    }
}

这是一个屏幕转储。

请注意,这些值显示在变量视图中;但不在调试器中(也不通过 println()):

在此处输入图像描述

有补救措施还是这是另一个调试器错误?

4

0 回答 0