How to Enable Guard Malloc

会有一股神秘感。 提交于 2019-12-07 09:41:08

问题


This is a stupid question. The documentation says:

To enable debugging using Guard Malloc, choose the Run > Enable Guard Malloc option in Xcode before running your project. Building and running your application with this option enabled runs your application using the Guard Malloc library automatically. You can use this option both Mac OS X applications and also for iPhone applications running in the simulator.

http://developer.apple.com/library/ios/#documentation/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html

So yea yea go to Run > Enable Guard Malloc. There is no Run menu!!!!!

The menus are Xcode File Edit View Navigate Editor Product Window Help

There is no Run menu. So what the hell I should do?


回答1:


Go to your Schemes (via Product > Edit Scheme), then select the build configuration that you want, then navigate to the "Diagnostics" menu, and then check the "Enable Guard Malloc" checkbox:



来源:https://stackoverflow.com/questions/7472604/how-to-enable-guard-malloc

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