Xcode will not stop on any breakpoints in this 1 project I have all the others work fine.
My Build Config : Debug, Breakpoints have been activated, Debug Workflow : Set to Always show Strip Style: Set to All Symbols
I have tried deleting the Defaults: Delete the Xcode preference defaults delete com.apple.dt.Xcode
I have reinstalled Xcode, ran the project on another mac and breakpoints were fine
Any ideas would be great
Thank you
You might be pushing "Run" instead of "Debug" in which case your program is not running with the help of gdb, in which case you cannot expect breakpoints to work! In Xcode 6.4, there is now only a Run button and whether it runs a debug configuration or not depends on the currently selected scheme settings.
Navigate to a line in your code where you want execution to pause, then click the gutter or line number in the source editor to set a breakpoint. Xcode displays a breakpoint icon to indicate the location. Drag a breakpoint up or down to move it to another location; drag it away from the gutter to remove it.
An exception breakpoint is a type of breakpoint that is created when some exception occurs in the code. On occurrence of such exception our application stops at that given condition causing the exception and we can access all variables in scope at that breakpoint.
Swift version: 5.6. Breakpoints are locations in your code where Xcode will pause so that you can inspect the state of your program. They don't have any impact on the final performance of your code – in fact, they don't even exist in your code at all – so there's no harm using them liberally.
I found the answer that was causing my Xcode not to register breakpoints.
Inside Build Settings, Generate Debug Symbols must be set to YES
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