Lastmboy
Lastmboy

Reputation: 1869

Strange values displayed in Xcode debugger

I'm currently using Xcode version 7.2.1, and I'm getting weird values displayed for most values in the debugger. The weird thing is it's always the same value. Other than a few values, all variables are listed as containing the value "00:30:00". The best way to show this is to give you an example.

strange values in Xcode debuger

I have tried restarting Xcode, clean and build, re-booting, and even re-installing Xcode, but I can't seem to escape this weird value. If I put in print statements, all the values show up correctly in the console. Is there any way I can get them to be correct in the debugger? Thanks.

Edit: This is kind of interesting. If I move the mouse pointer over one of the entries, you can see that it displays "00:30:00", but if I inspect the value, it displays the correct date value.

enter image description here

Upvotes: 0

Views: 187

Answers (1)

Lastmboy
Lastmboy

Reputation: 1869

I finally figured it out! I must have typed something in the "Edit Summary Format..." popup. It took it as a literal format string and displayed it for all string values from thereafter. Once I removed that, everything went back to normal.

Upvotes: 1

Related Questions