Why aren't my breakpoints working?


I have breakpoints set but Xcode appears to ignore them.

By : AlanKley


For Xcode 4:

go Product -> Debug ->  Activate Breakpoints
By : evya

Thing to try :

1 ) restart xcode 2 ) select another simulator -- which was my case 3 ) reboot mac.

if none of this works. then look at the project settings. ( which is leeast possible thing. )

In my case, I found out that the breakpoints have been accidentally deactivated. You can reactivate it again via Debug->Activate Breakpoints [Cmd+Y]. If you notice grey'ed out breakpoint markers instead of the usual blue marker, this is likely the case.

As it turned out you can always toggle breakpoints activation with Cmd+Y keys, you might have hits this combination key not noticing it. This report is based on Xcode 7.2.

This video can help you solving your question :)
By: admin