Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xCode breakpoint not show my code while debug

xCode6.1.1 breakpoint showing like this, cant debug line by line. how to change the settings.

like image 895
Kasirajan M Avatar asked Jan 06 '15 13:01

Kasirajan M


People also ask

Why breakpoint is 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.

Why is my breakpoint not working?

If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the code by default. Normally, this problem happens when a source file is changed, but the source code wasn't rebuilt. To fix this issue, rebuild the project.

How do you Debug a breakpoint code?

To set a breakpoint in source code: Click in the far left margin next to a line of code. You can also select the line and press F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert breakpoint. The breakpoint appears as a red dot in the left margin.

How do you set 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.


1 Answers

debug -> debug Workflow -> always show Disassembly (uncheck).

like image 60
Alex Shekotov Avatar answered Nov 09 '22 13:11

Alex Shekotov