Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to input from stdin when debugging in XCode

 
   Macintosh computer (Home) -> Programmer Help RSS
Next:  Full memory bar for OS  
Author Message
Lou Pecora

External


Since: May 04, 2004
Posts: 119



(Msg. 1) Posted: Tue Nov 16, 2004 11:54 am
Post subject: How to input from stdin when debugging in XCode
Archived from groups: comp>sys>mac>programmer>help (more info?)

I've started using the Xcode debugger (seems nice) and I'm just doing
input from stdin, but I can't see how to input during a debugging
session. I open the Debugging Console and see the stdout stuff, but
when I hit a scanf it just sits there and typing something followed by
CR or Enter does nothing. If I pause the program I can enter command
line stuff at the (gdb) prompt, but that's interrupting the program and
it doesn't send the input to the program. I looked in Xcode help and
typed 'help' in the debug console window, but got no clues.

How do you input from stdin (like in a terminal window or Run Log)
during debugging?

Any tips appreciated. Thanks.

-- Lou Pecora (my views are my own)

 >> Stay informed about: How to input from stdin when debugging in XCode 
Back to top
Login to vote
Michael Ash1

External


Since: Jun 01, 2004
Posts: 820



(Msg. 2) Posted: Tue Nov 16, 2004 12:45 pm
Post subject: Re: How to input from stdin when debugging in XCode [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Lou Pecora <pecora DeleteThis @anvil.nrl.navy.mil> wrote:
 > I've started using the Xcode debugger (seems nice) and I'm just doing
 > input from stdin, but I can't see how to input during a debugging
 > session. I open the Debugging Console and see the stdout stuff, but
 > when I hit a scanf it just sits there and typing something followed by
 > CR or Enter does nothing. If I pause the program I can enter command
 > line stuff at the (gdb) prompt, but that's interrupting the program and
 > it doesn't send the input to the program. I looked in Xcode help and
 > typed 'help' in the debug console window, but got no clues.
 >
 > How do you input from stdin (like in a terminal window or Run Log)
 > during debugging?

Debug->Standard I/O Log<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: How to input from stdin when debugging in XCode 
Back to top
Login to vote
Lou Pecora

External


Since: May 04, 2004
Posts: 119



(Msg. 3) Posted: Wed Nov 17, 2004 11:40 am
Post subject: Re: How to input from stdin when debugging in XCode [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <1100627139.977735.TakeThisOut@nfs-db1.segnet.com>,
Michael Ash <mike.TakeThisOut@mikeash.com> wrote:

  > > How do you input from stdin (like in a terminal window or Run Log)
  > > during debugging?
 >
 > Debug->Standard I/O Log

So that's where they hide it. Totally overlooked that. Thanks, very
much.

-- Lou Pecora (my views are my own)<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How to input from stdin when debugging in XCode 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Debugging in XCode 2.4 (Mac OS X 10.4) - OS: Mac OS X 10.4.8 / XCode 2.4 Hello I try to debug a QuarkXTension. Every time I want to start the debugging I get the message "QuarkXpress 7.0 exited with status (10). The debugger is still running. Use 'Restart' to debug again.". I hav...

Debugging an AudioUnit in Xcode 2.0 - Hi, I try to debug an AudioUnit in Xcode 2.0 but it doesn't work. It used to work flawless on Xcode 1.5, but it has been a while since then and I can't seem to understand what might be the problem. If I recall correctly, then I just choose Debug..

Debugging STL data structures in XCode - Does anyone have a good procedure for displaying the contents of STL data structures (list, map, queue, etc>) in XCode? Codewarrior was half-way decent at letting you get access to the data i.e. one could view the key class members as an array but XC...

Xcode build settings, can not get back to debugging/develo.. - Hello NG, I can not switch back my project to development. I set build, configuration to development but it dose not become the active configuration. I know I switched a lot in the configuration to compile a working UNI-Bin, but I think I switched it...

Xcode could not locate source file: {standard input} (line.. - Xcode could not locate source file: {standard input} (line: 68) What is it ? Break point no longer break too... Help ! what can I do ? Thank you.
   Macintosh computer (Home) -> Programmer Help All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]