Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Enable Guard Malloc

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?

like image 590
user4951 Avatar asked Sep 19 '11 14:09

user4951


1 Answers

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:

enter image description here

like image 100
Jacob Relkin Avatar answered Sep 22 '22 06:09

Jacob Relkin