Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Instrument->leaks and debugger console at the same time in xcode

My program is crashing when using the memory leak instrument in xcode (yet it is showing no memory leaks). I would like to be able to run the debugger console at the same time to see what's happening. Is this possible? thanks

like image 493
JMH Avatar asked Feb 01 '11 04:02

JMH


1 Answers

Yes - in the simulator at least.

The way to do this is to first run your app in instruments, then stop the app (this just makes sure Instruments knows about your application and that Instruments is up and running). Then restart the app in the debugger.

Now go back to Instruments, and select "attach to process" - selecting your application from the drop-down. You can start recording now and the debugger will also be functional.

like image 178
Kendall Helmstetter Gelner Avatar answered Oct 26 '22 18:10

Kendall Helmstetter Gelner