xCode breakpoint not show my code while debug - xcode6

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

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

Related

How to enable/disable Android Studio from jumping to the first error after build

I try to write some code... while at it the auto build kicks in (or I just manually build) since this action can take some time, I go on typing...
As soon as the build is done, and when it finds errors it just opens the file of the first error and jumps to the error line where I go on typing there...
Where is the off switch for that feature, please?
#yole was pretty close...
File -> Other Settings -> Default Settings -> Compiler -> Automatically show first error in editor.
Why things has to be so cryptic???
Settings | Compiler | Automatically show first error in editor

Is there a way to set a breakpoint at the start of any NSLog statement?

Some part of a big code base is printing out weird NSLog statements, and I'm trying to detect where it's coming from. Is there a way to put 1 breakpoint at the start of every NSLog call so I can see where it's being called from, rather than manually have to put breakpoints on all places that call NSLog?
In Xcode 6:
Step 1:
On the Navigator on the left, go to Breakpoint Navigator (command ⌘ + 7):
Step 2:
Click the + button on the bottom left (Add a new breakpoint),
then choose Add Symbolic Breakpoint...:
Step 3:
In Symbol, type NSLog.
Alternatively, you can do the same thing in Debug → Breakpoints → Create Symbolic Breakpoint.
Fo Xcode 5, see this.
If you want to break on a certain log message you can use:
This example will break on every log containing the word "Warning".
Update:
On newer devices use $x0.
Simulator and older use $r0.
$arg0 should do for all cases.
In the breakpoint navigator (command+6) add (on the bottom, there is a Plus symbol) a symbolic breakpoint and use NSLog as symbol.
According to this you can set that kind of breakpoint by doing so in the lldb console:
breakpoint set --name NSLog
One way to do this using Xcode could be to put a breakpoint in the main function or on you AppDelegate applicationDidFinishLaunchin (read: as soon as possible).
Then, you run your app, and when it pauses on said breakpoint, you have access to the lldb console: you type the above line and hit return, and lldb prints something like this:
Breakpoint 3: where = Foundation`NSLog, address = 0x32a3da08
At this point, you resume your app, and it will pause again when NSLog is called (pay attention to the call stack using the Debug Navigator).

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??
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
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
You can try this
Product > Debug > Create Symbolic Breakpoint
I agree with humphriesj regarding "Always Show Disassembly" in Xcode 6.1, and it did work for awhile.
But for me it seems to have turned itself back on, even though it was still unchecked in the menu. I turned it on and then back off, and finally I can see the source code again.

Skipping over .asm code in Xcode4 debugger

I'm using Xcode4 and the debugger keeps jumping into .asm code when I select jump over. I don't know .asm and just want the next line of ObjC code. Is there some setting to have it not show the .asm code?
Thanks!
Which debugger you are using? LLVM or GDB. (You can find out at the menu product->edit scheme as shown figure below).
If the debugger is LLDB, try to switch it back to GDB and see that fix your problem.

How to disable assembly in Xcode's debugger window?

For some reason my Xcode debugger shows assembly code when debugging an iPhone app code. I'd like to see only Objective-C code, not assembly. This used to work OK but now something has changed. How to get back to "normal" debugging? Is there a setting in Xcode somewhere?
#AlexR: To see the source code in Xcode 4.4, switch off Show Disassembly When Debugging over here: Product -> Debug Workflow -> Show Disassembly When Debugging
In Xcode 3.x: Run -> Debugger Display -> Source Only
In Xcode 8.2.1:
Click Menu item "Debug"
Select "Debug Workflow"
Click the "Always Show Disassembly", so that no checkmark appears.
I'm having the same problem despite having unchecked the "Always show disassembly" option. Contacted Apple and they said
"This is usally a permissions problem or an issue with dSYMs not being found by the debugger due to a bad .lldbinit file."