Frage

For some time now whenever I want to print NSDate with po in XCode's debugger instead of a full datetime format like this

2012-02-15 18:55:00 +0000

I'm getting something like this

February 15, 2012

which makes it really hard to work with. I can't really remember changing any settings related to date/time format neither in system preferences nor XCode itself, so I'm a bit puzzled.

Looking forward to getting any hint. Thanks.

War es hilfreich?

Lösung

lldb only calls the debugDescription method

so override debugDescription...

you can do that in a category for debugging

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top