在Xcode 4中设置malloc_error_break [英] Set malloc_error_break in Xcode 4

查看:97
本文介绍了在Xcode 4中设置malloc_error_break的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Xcode4中设置malloc_error_break?此外,我似乎得到此错误 malloc:***错误对象0x4d80814:释放对象的错误校验和 - 对象可能在被释放后被修改。

How do I set a malloc_error_break in Xcode4? Also, I seem to be getting this error malloc: *** error for object 0x4d80814: incorrect checksum for freed object - object was probably modified after being freed.

无论如何我可以检查0x4d80814是什么对象?它不会显示在调试器的变量列表中。

Is there anyway I can check what object 0x4d80814 is? It doesn't show up in the variables list in the debugger.

推荐答案

我认为这就是它的完成方式。

I think this is how its done.


  • 点击
    XCode 4左侧栏顶部的断点导航器(看起来像一个标志杆)。 / li>
  • 在左下角有一个加号。单击它。

  • 添加符号断点并将malloc_error_break设置为符号。

  • 单击下一个断点按钮(看起来像|>)并且是在底部面板上。它会将您带到导致错误的行。

通常它是由创建为其他对象的子对象的对象引起的尚不存在(即SKPhysicsBody在其spritenode存在之前创建)

Usually it is caused by objects being created as subobjects of other objects that don't exist yet (ie SKPhysicsBody being created before its spritenode exists)

这篇关于在Xcode 4中设置malloc_error_break的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆