I'm running a debug build on the iPhone with Leaks. I'd like to break at certain points to see if particular leaks have occurred yet. This would allow me to narrow down where the leak is occurring by process of elimination. However, the debugger is ignored while Leaks is running. Any suggestions?
A:
If you launch it in debug mode first (cmd-Y), you can then open Instruments and choose the Leaks template and attach to your running iPhone app process.
Bdebeez
2009-03-05 13:17:08
I don't see any running processes to attach to. Do I need to do something else?
4thSpace
2009-03-05 16:53:11
In Xcode try: Run -> Start With Performance Tool -> Leaks
Benjamin Ortuzar
2009-05-17 13:16:37
A:
a quick way to do that: open Terminal.app, run "ps axwww | grep Simulator/User/Applications | grep -v grep" (without the quotes), the first number is the PID (process ID of your running application) and then run "leaks PID" (without the quotes and replace PID with the first number got with the previous command)
A:
Arrel
2009-07-13 19:32:44