Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8.3.2 Breakpoints not working

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

like image 629
Malcolmn Roberts Avatar asked Apr 24 '17 11:04

Malcolmn Roberts


People also ask

Why breakpoints are not working in Xcode?

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.

How do I run breakpoints in Xcode?

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.

What is exception breakpoint in Xcode?

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.

What is a breakpoint Swift?

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.


1 Answers

I found the answer that was causing my Xcode not to register breakpoints.

Inside Build Settings, Generate Debug Symbols must be set to YES

like image 115
Malcolmn Roberts Avatar answered Oct 14 '22 08:10

Malcolmn Roberts