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.
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.
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.
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.
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.
Try clicking the "step out" button when you are in code you don't have access to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With