Xcode 6 Ignoring Breakpoints - Swift

Xcode 6 ignoring breakpoints - Swift

After trying many different things, I ran

defaults delete com.apple.dt.Xcode

This reset my Xcode settings. Now when I create a new project, breakpoints work fine.

I realized that the problem happened when I added Cocoapods to the project. B/c right after I ran pod install, breakpoints stopped working. I'm not sure why.

Hope this helps anyone with the same problem

Why aren't Xcode breakpoints functioning?

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.")

  1. Make sure you haven't accidentally set "Active Build Configuration" to "Release."

  2. 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.

Logging and breakpoints not working in XCTests

The culprit was DEPLOYMENT_POSTPROCESSING = YES in the project file.

Xcode not stopping on breakpoint

I found the problem, Somehow the "Show Disassembly when debugging" was enabled in my Xcode which creates that problem. When I disabled it, all my debugger stopped in my source code.

You can find it under Product->Debug Workflow->Show Disassembly when debugging

Edit

In the latest Xcode it is under Debug->Debug Workflow->Show Disassembly when debugging



Related Topics



Leave a reply



Submit