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 enter image description here

if want to use breakpoint everytime app crashes add exception breakpoint. should show code crashes , stop before can find out happened

enter image description here


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -