Shortly after updating to Xcode 13.2.1 I started seeing some weird behaviour of breakpoints. When I run an app (in a simulator) some of my breakpoints change their look and turn to dotted blue outlined. Xcode does not stop execution at these breakpoints although code has been compiled, loaded and executed. I checked it in Console by adding some print
s.
When I hover over breakpoint Xcode shows a message:
Xcode won't pause at this breakpoint because it has not been resolved Resolving it requires that:
- The line at the breakpoint is compiled.
- The compiler generates debug information that is not stripped out (check the Build Settings).
- The library for the breakpoint is loaded.
All trivial solutions like reloading, reapplying breakpoints have not helped.
Did anybody else see something like this? Is there a way to solve it?
Screenshot for reference:
Conclusion:
changing simulator fixed it for my case
Details:
I want to clarify my case and then what fixed the issue for me.
I had to update to Xcode 15.1 then breakpoints stopped working for no reason, I tried all possible solutions I found but none worked, for example (restarting xcode, deleting derived data, removing all points adding them again, checked all debugging configurations, etc..)
usually before updating to Xcode 15.1 (then 15.2 trying to fix the issue but didn't work), I was developing using simulators iPhone12 (iOS 15) & iPhone s6 (iOS 15), at both the break points didn't work so I never thought the simulator is the reason, however in a disparate trial, I tried to run on iPhone 15(iOS 17.2 -> the default simulator with the Xcode version) and it worked just fine!!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With