Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is my xcode jump to assembly view when break point set?

When I try to debug with breakpoint, it jump to assembly view like this no matter which line of code. I want the highlight of current source line back!!

How can I config it??

enter image description here

like image 428
mineschan Avatar asked Aug 21 '12 04:08

mineschan


People also ask

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.

What is symbolic breakpoint in Xcode?

It allows you to add a symbolic breakpoint which will halt the execution at a specific point so that you can backtrack and start investigating into where this method call was triggered.

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.

How do I debug in Xcode step by step?

When you run an application in Xcode, the debugger is automatically started and attached to the process of the application. Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.


2 Answers

This is a useful feature sometimes, but is easy to turn off:

Debug > Debug Workflow > Always Show Disassembly

In older versions of Xcode (<6.1):

Product > Debug Workflow > Show Disassembly When Debugging

like image 54
Daniel Vogelnest Avatar answered Sep 23 '22 07:09

Daniel Vogelnest


I'm having the same issue in Xcode 6.1 and solved it by doing the following:

Debug -> Debug Workflow -> UNCHECK Always Show Disassembly

Make sure "Always Show Disassembly" is unchecked

like image 20
humphriesj Avatar answered Sep 23 '22 07:09

humphriesj