Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set malloc_error_break in Xcode4

Tags:

xcode4

iphone

I am new to Xcode4, how to set malloc_error_break in Xcode4.

malloc: *** error for object 0x686a240: double free
*** set a breakpoint in malloc_error_break to debug
like image 602
Chandan Shetty SP Avatar asked Aug 03 '11 08:08

Chandan Shetty SP


1 Answers

If in Xcode 4, go to breakpoint navigator

View/Navigators/Show Breakpoint Navigator

at the bottom, add a new breakpoint by clicking on the '+' plus sign and choose

Add Symbolic Breakpoint

that you'll name it.... "malloc_error_break"

like image 187
dlewin Avatar answered Nov 02 '22 02:11

dlewin