ios - Swift - Different object in console/debugger -


i'm having big wtf moment , have no idea what's going on

so have little piece of code

let par2 = bla.parameter[2]! print(par2) 

bla object of class called fitservice singleton , parameter dictionary id of object. class of object called parameter , looks this:

class parameter:object{      dynamic var parameterid:int = -1     dynamic var name:string = ""     dynamic var updatedat:date = date(timeintervalsince1970: 0)      convenience init(json:json){         self.init()          self.parameterid = json["parameterid"].int ?? -1         self.name = json["name"].string ?? ""         self.updatedat = date.from(mysql: json["updatedat"].string)     }      override static func primarykey() -> string? {         return "parameterid"     } } 

i'm using realm save objects , swiftyjson/alamofire data backend , convert it.

so come wtf moment: i've set breakpoint after print() line first snippet , output: enter image description here

so in debugger object has different values when printing??? how possible?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -