objective c - xcode debugger value of expression -


in xcode, insert breakpoint @ line..

say line is:

abc = [books valueforkey:@"officialname"]; x = [appdelegate.books count]; 

my question in debugger, if hover on abc, display value

but if want see runtime value of expression "appdelegate.books count"

it not show value. how can value of expression normal var ?

this unorthodox, in order find in loop (see hmthur's comment in other answer):

for (x=0;x<[arr count];x++)

firstly, spread loop on 3 seperate lines, can debug step them 1 bit @ time:

for (x = 0;      x < [arr count];      x++) 

now put breakpoint @ start of loop.

step down x < [arr count] has been executed, not x++

now in watch window of debugger, open registers group.

the result returned [arr count] present in $eax register.

this unorthodox, don't rely on developing life-critical software! stick original answer in interests of sanity.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -