iOS Developer
iOS Developer

Reputation: 321

How to go to the line which caused the error in xcode

I am using xcode 10 beta i am getting common errors that occur during the unavailability of data or unwrapping optionals, but how can i go to that line that caused the error or which array in out of index or which optional is being unwrapped?

Here is what i get

enter image description here

How to reach the line or optional or array that caused the error?

Update : after placing exception breakpoint

enter image description here

Upvotes: 0

Views: 313

Answers (1)

Sagar Chauhan
Sagar Chauhan

Reputation: 5823

Try this following way:

enter image description here

Select second option. Exception Breakpoint...

Upvotes: 1

Related Questions