Printing object retain count in gdb (gdb->General)In the gdb console:
(gdb) print (int)[theObject retainCount]If you're expecting to have an excessively high number of retains, you can use
(unsigned int)in the cast. I find(int)a skootch faster to type.