Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding line corresponding to error in XCode debugger

When XCode outputs an error like 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]:etc., how can I find the line of code with that objectAtIndex code?

like image 321
Rogare Avatar asked Dec 11 '22 02:12

Rogare


1 Answers

Create a new Exception breakpoint. It will usually show you where the exception is first thrown. Go to the Breakpoints tab on the left:

enter image description here

enter image description here

like image 200
Siriss Avatar answered Jan 31 '23 09:01

Siriss