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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -