Xcode4 : Why my breakpoints are not working in Xco

2019-09-04 14:23发布

问题:

I am unable to debug my project as the breakpoints are not working.

I have enabled breakpoint option but still its not helping me.

I found some links but they are for the Xcode3

And for Xcode4 I found this site but it doesn't have any solution.

What should I do ?

回答1:

  1. Open Scheme drop box
  2. Click on Edit Scheme

  1. Click on Run YOURAPP.app tab on the left

    • Set Build Configuration to DEBUG
    • Set Debugger to LLDB
  2. Enable breakpoints and Run the app



回答2:

Ran face first into this problem after updating to iOS SDK 6.1. After a few hours of swearing and digging through settings, it seems to only happen when using LLDB. Switching to GDB has bestowed upon me the ability to use breakpoints again. FWIW I've had other issues with LLDB not correctly following vtable pointers. Good luck.



回答3:

Try rebooting your device. I had the same problem with Xcode4; although, I seem to remember it working before upgrading my phone to 6.1. Anyhow, the suggestion here to reboot my device solved the problem. Breakpoints are again working for me.