Xcode 8 Breakpoint in file not working

前端 未结 11 668
Happy的楠姐
Happy的楠姐 2020-12-31 00:42

I have one file,SignInViewController.swift, in my Xcode project that out of nowhere has begun not stopping on breakpoints. I have a breakpoint in viewDidL

相关标签:
11条回答
  • In my case, it turns out that the Dev build configuration is not configured properly.

    The Dev configuration should be copied from Debug, not Release.

    You can search with word debug in your Build settings to see the differences.

    For example:

    Hope this helps.

    0 讨论(0)
  • 2020-12-31 01:37

    I'm not really sure how this ended up fixing it but I isolated the issue to a specific block of code in viewDidLoad(). Then I commented out that code and built and ran the project. Then I uncommented the code and built and ran it again and the breakpoints worked.

    0 讨论(0)
  • 2020-12-31 01:40

    I had the same problem with an old project. Select Product(located at top menu bar) -> Scheme -> EditScheme and I solved this issue by clicking on "Debug Executable", as shown in Picture. Maybe this will help someone else too.

    0 讨论(0)
  • 2020-12-31 01:41

    Building up on what @neprocker said, I had "Optimize for Speed" for both debug/release. Simply changed the value for debug and I was good to go.

    0 讨论(0)
  • 2020-12-31 01:44

    Below patch is work for me. From the menu bar, select Product -> Scheme -> Edit Scheme -> Select Profile -> Set Build Configuration to BUILD. Please review below-attached screenshot.

    0 讨论(0)
提交回复
热议问题