debugging - How do you execute a method and view the return value in the XCode debugger? -
how execute methods in program , display return value. example, how execute following method
[self.view.subviews count]
when program stopped @ breakpoint?
also, how view value of property w/o hovering on w/ cursor?
this example of method call view such.
you can use either "print object" or "print" statements in gdb. let's have array @"one"
, @"two"
contents. print array this
gdb> po myarray
to print last array object:
gdb> po [myarray lastobject]
to print simple scalar value use "print" type information parameter this:
gdb> p (int)[myarray count]
Comments
Post a Comment