How to set malloc_error_break in Xcode4

☆樱花仙子☆ 提交于 2019-12-20 19:48:53

问题


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

回答1:


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"




回答2:


In Xcode 4.5.2 its (From the menu bar):

Product, Debug, Create Symbolic Breakpoint



来源:https://stackoverflow.com/questions/6923853/how-to-set-malloc-error-break-in-xcode4

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!