Xcode does not stop at breakpoint

I have a problem with Xcode since I upgraded my Xcode to 5 from 4.6. When I set a breakpoint in the file, the program actually stops at the breakpoint, but I do not see my code in the workspace. It downloads some other system codes, for example

0x2ff8: calll 0x2ffd -[ViewController viewDidLoad] + 13 at ViewController.m:28 0x2ffd: popl %eax 0x2ffe: movl 12(%ebp), %ecx 0x3001: movl 8(%ebp), %edx 0x3004: movl %edx, -12(%ebp) 0x3007: movl %ecx, -16(%ebp) 0x300a: movl 18799(%eax), %ecx 0x3010: movl 18559(%eax), %edx 

enter image description here

When I click the Continue button, it shows my code again. I tried,

1) Created a new project

2) Rebooted Xcode

3) Rebooted the system

4) Reinstall Xcode

None of them helped me. I saw a lot of questions in StackOverFlow that discuss the type of "Breakpoints not working ...", but for me, breakpoints actually work, but don't stop in the right position.

+4
source share
2 answers

I found a problem. Somehow, in my Xcode, "Show disassembling when debugging" was turned on, which creates this problem. When I turned it off, my entire debugger stopped in my source code.

You can find it under Product-> Debug Workflow-> Show Disassembly when debugging

Edit

In the latest Xcode, it is under Debug-> Debug Workflow-> Show Disassembly when debugging

+13
source

Xcode 6:

Go to Build Settings and make sure your Strip style is set to non-global characters , not All characters

enter image description here

+2
source

Source: https://habr.com/ru/post/1502587/


All Articles