Baroto
Baroto

Reputation: 5

xcode exc_bad_access: Please teach how to properly debug this error

I'm still learning XCode with only the net as my teacher.

I have 4 tab item which worked previously. Now 1 of them is causing my app crash. I've tried to create breakpoint at the start of my failing tab's viewcontroller. But it's still throwing error message.

I search the web about the message's meaning and it may cause by deallocate objects. The message is:

"Thread 1: EXC_BAD_ACCESS (code=2, address=0x.....)"

Please give me a clue how to find my problem's source...kind of lost here.

Here is screenshot:

drive.google.com/file/d/0B_Eajdcb7PRGWW1PejQ0UmRqWjg/edit?usp=sharing

Upvotes: 0

Views: 663

Answers (1)

cph2117
cph2117

Reputation: 2681

The easiest way to debug these errors is with NSZombies, which will show you where/what error is occurring. To do this go to the "product" menu, then select "edit scheme". Go to "run yourApp.app", then go to "arguments". Add NSZombieEnabled to "environment variables" and set value to YES. Run your app again and the error should become clear.

Upvotes: 3

Related Questions