Re: Debugging C exercises that use inputs (e.g. scanf)
Re: Debugging C exercises that use inputs (e.g. scanf)
- Subject: Re: Debugging C exercises that use inputs (e.g. scanf)
- From: Roger Banks <email@hidden>
- Date: Thu, 12 Mar 2009 10:19:09 -0500
http://developer.apple.com/tools/XCode/XCodeprojects.html
Put your inputs in a file, place the file in the same directory as your executable, and then redirect the file to your executable with a command line argument. The XCode place to enter the argument is explained in the link above. If your file is called "MyData.txt", put "<MyData.txt" (without the quotes") in the command line arguments pane.
-- Roger
On Thursday, March 12, 2009, at 09:39AM, "Jeremy Pereira" <email@hidden> wrote:
>
>On 12 Mar 2009, at 13:44, Angelo D'Ambrosio wrote:
>
>> Hi,
>> I'm using xcode to do my c exercises. Sometimes things don't go as
>> expected and I would need the debugger to find the errors. For
>> exercises without input the debugger works well, but if you use any
>> input function the debugging stop waiting for the input. How do I
>> give the input to the program so that it could continue?
>>
>
>Find the debugger console window. Click in it, enter your input and
>hit return.
>
>
>> Thanks
>> Angelo D'Ambrosio
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Xcode-users mailing list (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>
>This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden