Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6 ignoring breakpoints - Swift

Xcode 6 is completely ignoring my breakpoints. I saw a post here from 2008, but the answers are outdated, and don't seem to work.

EDIT:

This is happening only with projects that I start. All my downloaded open source projects work perfectly fine, as well as projects I started a few months ago.

UPDATE:

This is what I get when I create a brand new project and set a breakpoint in viewDidLoad

enter image description here

like image 418
MendyK Avatar asked Mar 17 '23 06:03

MendyK


2 Answers

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

like image 125
MendyK Avatar answered Mar 29 '23 09:03

MendyK


I had a similar issue when I added a target to my project. Breakpoints placed in that target were ignored.

The solution was to set "Debug Information Format" in the new target's build settings to "DWARF with dysm"

In XCode 7.1 it defaulted to DWARF

like image 22
Adam Ritenauer Avatar answered Mar 29 '23 08:03

Adam Ritenauer