Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging question



On Apr 1, 2006, at 2:22 AM, Michael wrote:

I would like to be able to step through code in a "Standard tool" project, in which the user inputs some data ( Word count for example). In real basic, which I am familiar with, one simply sets a break point and then once in the debugger, steps through the code. I have not had much luck in Xcode although I am certain this must be possible. I am not asking for a step-by-step approach, but an acknowledgment that this is doable and a brief outline of how to achieve this.
Thank you in advance.


Hi Michael,

Just click in the margin of your code's first line, and xcode will create a breakpoint there. Next, instead of build-and-run, simply choose build-and-debug. This will open gdb and automatically stop at line 1 (your breakpoint). Next, choose either Step-Over or Step-Into and crawl over your code line by line.

-Sean
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Debugging question (From: Michael <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.