I have breakpoints set but Xcode appears to ignore them.
Xcode – Why aren’t Xcode breakpoints functioning
breakpointsxcode
Related Topic
- C# – How to remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning
- Xcode – How to “add existing frameworks” in Xcode 4
- Ios – Version vs build in Xcode
- Xcode – How to install Xcode Command Line Tools
- Iphone – Ignore Xcode warnings when using Cocoapods
- Xcode-select active developer directory error
- R – CMake: how do you copy private frameworks into the application bundle under OS X
- Xcode 10 Error: Multiple commands produce
Best Answer
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.