None of my breakpoints are being hit.
I've tried the following:
Debug
and Debug executable
is
tickedGenerate debug symbols
is set to Yes
Optimization level
to No optimization
The breakpoints are still not being hit.
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.
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. Click the breakpoint icon in the debug area toolbar to activate or deactivate all breakpoints.
The breakpoint is a toggle. You can click it, press F9, or use Debug > Toggle Breakpoint to delete or reinsert it. To disable a breakpoint without deleting it, hover over or right-click it, and select Disable breakpoint.
It means the breakpoint is on a line of code that will never be executed. For example: Follow this answer to receive notifications.
Try below steps
In my case problem was in the Debug information format setting. It was set to DWARF
instead of DWARF with dSYM File
. Reseting it to the default value solved the problem.
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