Tycho Pandelaar
Tycho Pandelaar

Reputation: 7535

XCode debugging. How can I see where my code fails ? I get no stacktrace

Currently I am struggling to find out where my code fails. Xcode sometimes gives me a stacktrace, but currently is doesn't. I just get an error msg in my console like: *** -[CFString copyWithZone:]: message sent to deallocated instance 0xbe10d80. But sometimes I don't get an error message in my console at all when my app crashes. How can I figure out where the problem acually occurs? How do you guys locate your problems?

Perhaps someone knows a few environment settings that can help?

Upvotes: 0

Views: 936

Answers (2)

Splendid
Splendid

Reputation: 1061

Go to Debugger then click Breakpoint. then run ur app u can see where error occuring

Upvotes: 2

Sylvain Defresne
Sylvain Defresne

Reputation: 44553

You can use Instruments (/Developer/Applications/Instruments) to help detect usage of zombie objects. Here is a link to a tutorial to use it to detect memory leaks, but there it can also be used for other purposes.

Upvotes: 0

Related Questions