views:

675

answers:

3

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
I don't see any running processes to attach to. Do I need to do something else?
4thSpace
In Xcode try: Run -> Start With Performance Tool -> Leaks
Benjamin Ortuzar
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