1

Is it possible to step through a Swift & Objective-C program in Xcode 7 without having to waste time endlessly stepping through compiled asm code? For every step I take, I end up spending another minute going through 20+ lines of generated assembly commands, and it doesn't help in the slightest that I just inherited this project a few days ago. I find it hard to believe you HAVE to look at unintelligible code when you want to debug something in a large application.

Any help is greatly appreciated, thanks a lot!

Edit: Apparently there isn't any way of doing this as of now. After a bit of further browsing typical of newbs ( :) ), I've found two other answered questions confirming this.

xcode debugging - quickly step over assembly code back to my custom code

XCode Debug - Can I bypass stepping through disassembly code

Community
  • 1
  • 1
TedNC
  • 85
  • 1
  • 8
  • What are you doing that takes you into the assembler code? Simply avoid clicking on the "Step Into" button unless you have the source code for the method you are about to step into. – rmaddy Apr 22 '16 at 14:43
  • I don't use "step into", obviously. The problem is even when i use the "step over" button, it still sometimes throws me into the assembly code. Im asking for a way to only skim through my own custom code. – TedNC Apr 22 '16 at 14:49

1 Answers1

1

Use "Step Out" (F8) to pop out of the current routine (which you see in assembler). You have good chances to quickly return to source-mapped area this way (but not always!).

werediver
  • 4,667
  • 1
  • 29
  • 49
  • 1
    Yes, that's what I mean. Is there no other way of making sure I avoid going to the assembler every other step? I guess I won't die if it's not possible, but it is hella annoying that I have to break my mental flow when the only thing I want to check is the control flow of the program. – TedNC Apr 22 '16 at 14:51
  • If you do recognise when it's safe to "Step Into" and when you actually want "Step Over" and nevertheless accidentally you get into assembly code, I have no more advices. That's probably a bug or non obvious feature of the debugger. – werediver Apr 22 '16 at 14:58
  • I was afraid you'd say this. Apple, step up your game! – TedNC Apr 22 '16 at 15:06
  • 1
    So in a way, Apple is making developers waste time pressing F8 trying to get out of something they don't need to look at or care. VisualStudio is a much better IDE tool but that's out of context. – Marin Sep 14 '16 at 21:08