Why aren't Xcode breakpoints functioning?
Solution 1:
First of all, I agree 100% with the earlier folks that said turn OFF Load Symbols Lazily
.
I have two more things to add.
(My first suggestion sounds obvious, but the first time someone suggested it to me, my reaction went along these lines: "come on, please, you really think I wouldn't know better...... oh.")
Make sure you haven't accidentally set "Active Build Configuration" to "Release."
Under "Targets" in the graphical tree display of your project, right click on your Target and do "Get Info." Look for a property named "Generate Debug Symbols" (or similar) and make sure this is CHECKED (aka ON). Also, you might try finding (also in Target >> Get Info) a property called "Debug Information Format" and setting it to "Dwarf with dsym file."
There are a number of other properties under Target >> Get Info that might affect you. Look for things like optimizing or compressing code and turn that stuff OFF (I assume you are working in a debug mode, so that this is not bad advice). Also, look for things like stripping symbols and make sure that is also OFF. For example, "Strip Linked Product" should be set to "No" for the Debug target.
Solution 2:
In Xcode 7, what worked for me was:
-
Make sure that the
Target > Scheme > Run
- is in Debug mode (was Release) -
Make sure to check the option "Debug executable":
Solution 3:
Go to the Xcode Debugging preferences. Make sure that "Load Symbols lazily" is NOT selected.