Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Tools > Providing scanf...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 539 of 628
Post > Topic >>

Providing scanf() input in debugger

by Michael Hopkins <michael.hopkins@[EMAIL PROTECTED] > Jun 11, 2006 at 11:16 AM

Hi all

I have a command line app that requires keyboard input of numbers during
program execution.  This works fine when running normally in the
pseudo-terminal but when debugging the program stops at the first 'scanf'
waiting for input.  How do I feed it?

I would like the input to be read automatically from the 'arguments to be
passed on launch' window, but that doesn't seem to work either on normal
running or in debugger.  Is it because this is only designed for the
original command line arguments?  I guess so.

Typical arguments are:
0 
1 
0 
0 
100 
9 
200 
200


Using X Code 2.3.

TIA 

Michael


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

        _/    _/   _/_/_/             Hopkins Research Ltd
       _/    _/   _/    _/
      _/_/_/_/   _/_/_/          http://www.hopkins-research.com/
     _/    _/   _/   _/
    _/    _/   _/     _/               'touch the future'
                   
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 




 4 Posts in Topic:
Providing scanf() input in debugger
Michael Hopkins <micha  2006-06-11 11:16:46 
Re: Providing scanf() input in debugger
"vze35xda@[EMAIL PRO  2006-06-11 04:20:15 
Re: Providing scanf() input in debugger
Michael Hopkins <micha  2006-06-11 16:20:37 
Re: Providing scanf() input in debugger
"vze35xda@[EMAIL PRO  2006-06-12 13:10:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 1:12:48 CDT 2008.