ios - Checking variables in XCODE after app has crashed -
my app has crashed telling index out range when use team[1]
surprising because should have 2 strings in it. have looked everywhere, in xcode , internet, cannot find way see team array looks like. there anyway see this? much!
click on left side of line of code contains (team[1]
) create breakpoint.
then run app. when reaches point stop executing can check going on.
here screenshot on how debugging looks like
you can see array content in "variables view" there example of "po" command on "console" section
if want to use breakpoint everytime app crashes add exception breakpoint. should show code crashes , stop before can find out happened
Comments
Post a Comment