Breakpoint
Breakpoint
IDE
In UI Xcode IDE, you can specify breakpoints on the code as well group breakpoints, share them and also add specific type of breakpoints. Like having exception breakpoint, printing debug logs, conditional breakpoints.
Apple dev | Stepping through code and inspecting variables to isolate bugs
Manual
Debugger breakpoint in code
func fail(desc: String) {
#if DEBUG
print("assertFail:\(desc)")
raise(SIGINT)
#endif
}
breakpoint disabled
For me on Xcode beta 16 and 15 it automatically just disables when I'm using a unit test breakpoints.
SO | xcode breakpoints stop working
Product>Scheme>Edit scheme>..
Under Run>info>Executable check "Debug executable"
Deleting my build folder and restarting Xcode also helped.
Sometimes I had issues if my iOS physical device was running a beta version and on a new major OS (iOS 17 Xcode) but running (iOS 18 beta 4x)
So maybe its still building the debug symbols or cache for the new OS.