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.

有帮助吗?

解决方案

lldb only calls the debugDescription method

so override debugDescription...

you can do that in a category for debugging

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top