From: http://www.cocoachina.com/bbs/read.php? Tid = 30607
Nslog is a common method for checking the value of a variable during debugging.ProgramWhat should I do if I am too lazy to re-compile nslog? At this time, I can use the command line to achieve the same functions as nslog.
Po is the information of the output object. It can only view the pointer address of an object. for example, if an object refers to a 0x13242 object address, you can view part of the object information through the Po object or the direct Po 0x13242 method.
However, the information that the PO can view is limited, and this cannot be used to view reverse return values such as frame or retaincount.
Print is required. for example, to view retaincount of object A, input print (INT) [A retaincount] in the command line during debugging. or print (cgrect) [A frame] to view the frame of object.
In addition, A. Frame usually does not respond during debugging, while print (cgrect) A. _ frame does.