Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode Debug - Can I bypass stepping through disassembly code

When debugging a project, after setting a breakpoint in XCode I'll start stepping through my code and then I will encounter disassembled code from what I assume are calls to various frameworks that don't have source code available. (Is this a correct assumption?) Is there a way (perhaps via a project setting that I haven't found yet) to suppress the display of this assembly code and not have to step though it but just step though the source code that I have implemented?

I see I can click on the the "continue program execution" icon but I am not positive that this is the best technique to accomplish this. At this stage of my development experience, stepping though the source to better understand code execution and being able to examine data values is very valuable, but stepping though assembly code ... not so much.

I'm using XCode 4 GM but I also encountered this in XCode 3.x.

like image 675
larick Avatar asked Feb 28 '11 19:02

larick


People also ask

How do I skip a line in Xcode?

In Xcode, you can use this command in two ways. Create a breakpoint where you'd like to skip the code and then edit it. Then add the jump code eg: thread jump --by 2 in the action section of the breakpoint. Or you can use the drag option provided by Xcode.

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.

What is debugging executable in Xcode?

The “Debug executable” checkbox specifies whether or not you want to run with the debugger enabled. Once running, you can use Debug > Attach to Process on a process that has been launched with debugging disabled if needed. It seems like all this does is start your app with the debugger attached.

How do breakpoints work 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

Try clicking the "step out" button when you are in code you don't have access to.

like image 114
Simon Goldeen Avatar answered Oct 15 '22 13:10

Simon Goldeen