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.")
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.
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
Making the Map Zoom to User Location and Annotation (Swift 2)
Ios: How to Create Expandable Tableview in Swift Without Using Third Party Libraries or Pods
Swift iOS Record Video and Audio with Avfoundation
Admob Interstitial Alway Returns False
How to Instantiate and Load a View Controller Before Segueing to It Using Swift
Updating Label Takes Too Long (Swift)
How to Reuse Struct on Swift? or Is There Any Other Way
How to Set Response Data into Todayextenstion Widget
How to Download and View Images from the New Firebase Storage
Cannot Access Appdelegate While Testing Xcode Project
Error "Call Can Throw, But Is Not Marked with 'Try' and the Error Is Not Handled"
Modifing One Variable from Another View Controller Swift
Horizontal Paging Uicollectionview with Automatic Item Size in a Vertical Stack View
Tableview with Searchcontroller - Deinit Not Called