Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invisible breakpoint in Xcode

Xcode 6 have some strange break point issue. I have removed all break points from my project but still its hitting some invisible break point every time.

I have tried below things.

Commad + 7 and delete all break points.

(lldb) br delete
error: No breakpoints exist to be deleted.

I don't see any break point but still its hitting some break point. see below screenshots for reference.

Invisible break point

..Nitin

like image 900
Nitin Avatar asked Feb 19 '26 03:02

Nitin


1 Answers

This is not a breakpoint, but rather an exception in the view controller (whose name you've partially redacted here). Click on that second item in the stack trace, and it will like show you the offending line. Just go up the stack trace until you get to your own code.

It's hard to tell on the basis of so little information, but looking at the stack trace, the assembly code shown, and the exception, it looks like you've encountered a problem during a segue where a cast failed. Perhaps have a prepareForSegue method that is trying to cast segue.destinationViewController to a particular view controller class in order to pass some data to the destination, but the cast failed for some reason. Perhaps you neglected to set the base class for the destination scene in the storyboard.

But if you click on that second line in your stack trace (right below the currently highlighted line) and you'll probably be taken directly to the offending line of code.

like image 108
Rob Avatar answered Feb 22 '26 20:02

Rob