Skip navigation.
 
mlRe: Viewing Retain Counts in Debugger
FROM : Steven Kramer
DATE : Sun Oct 31 18:46:11 2004

Op 30-okt-04 om 15:59 heeft j o a r het volgende geschreven:

> You can type "p (int)[myObj retainCount]" in the GDB console.
>


I've found it incredibly useful to define a (global) function along
these lines

unsigned rc(id inObject)
{
   return [inObject retainCount];
}

which allows you to save on typing

p rc(myObj)

Related mailsAuthorDate
mlViewing Retain Counts in Debugger Bruce Truax Oct 30, 15:50
mlRe: Viewing Retain Counts in Debugger j o a r Oct 30, 15:59
mlRe: Viewing Retain Counts in Debugger Bruce Truax Oct 30, 16:15
mlRe: Viewing Retain Counts in Debugger Steven Kramer Oct 31, 18:46
mlRe: Viewing Retain Counts in Debugger daniel Nov 1, 08:22