Xcode breakpoints stopped working

I was having a normal working day debugging an UI issue with a working env on Xcode 16.2 on simulator 18.0 iphone pro 16... was able to debug and breakpoints were working fine... after a small UI adjustment in code i re-run the app and breakpoints stopped working "out of the blue".


I already attempted these steps:

1- clean build

2- clean pods

3- clean cache

4- clean derived data

5- clean userdata

6- multiple reboots

7- delete projcet folder and reclone it and install from scratch

8- deleted simulator and recreated and tried on versions (17.5, 18.0, 18.1 and 18.2) that I never used before

9- updated to macOs 15.4

10- deleted my 2 xcode installations (16.2 and 16.0) and installed xcode 16.3 and xcode 16.0 and attempted on both versions with multiple sim versions as well including new 18.4

11- reinstalled xcode tools

12- attempted breakpoint in another project

13- checked all configuration mentioned in stack overflow and all suggestions were already in place. I disabled and re-enabled them to see if that fixed but it didn't. (schema debug checks, code optimization disabled, no show disassembly, etc.)


Only thing that works is symbolic BP like UIViewAlertForUnsatisfiableConstraints this gets triggered but all other "normal" breakpoints are ignored.

I tried starting without breakpoints and adding them on the run. starting with them enabled. etc. etc. all the combos. nothing seems to work.


Please can I get urgent support here?

MacBook Pro 14″

Posted on Apr 8, 2025 02:10 PM

Reply

Similar questions

4 replies

Apr 9, 2025 08:01 AM in response to hormondepp

I'm also able to manually inject breakpoints to the lldb prompt (by pausing the debug) like breakpoint set --name viewDidLoad and those breakpoints get triggered but not the ones in Xcode UI pointing to files or even if I set manually breakpoint set --file ViewController.swift --line 42 for example I see it adds on Xcode UI but it doesn't trigger. So debugger is attached.... just ignoring all my file breakpoints... How can I fix this?

Apr 10, 2025 08:51 AM in response to hormondepp

Got it to work TEMPORARILY!!! Not sure how... I re-did the exorcism I had done before as in trying to completely remove EVERYTHING Xcode related... But this time when I reinstalled it worked. there were small differences this time, before I just deleted Xcode ( from Applications folder to trash ) and re-installed it by moving newly downloaded xcode into Applications... attempted debug... didn't work.. then re-installed xcode tools manually... attempted debug again without success...

This time I deleted xcode and then deleted xcode tools before moving in the new Xcode in Applications and in this time xcode prompted to install the xcode tools... this didn't happen before... And also ran a script after deleting xcode that deletes all Xcode temp files to make sure all residual xcode folders were gone after deleted xcode. Additionally I cloned my project on new folder before opening Xcode to make sure it was getting everything new... These was the only differences from first attempt and seems to have done the trick...


Now I was happily debugging trying to fix some UI stuff... added another breakpoint to the ViewModel just to see that my happiness was short lived... now it hits breakpoints but when it does xcode detaches from debugger... app continues to run on simulator... but xcode debugger just commits suicide... It was working fine about 15 minutes ago... this is so frustrating

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Xcode breakpoints stopped working

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.