Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] How do I get eclipse/cdt to read from the standardinput?

Hi Wieant,
  I saw this under the common tab, but despite being labeled as
"standard input & output" if you specify a file it seems like the output
of the program goes into that file.  Is there to change this so that the
program can actually read a file as standard input?  Or, is David right
and there simply isn't a way to do this with Eclipse? 

Thanks,
Stephen

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of wieant@xxxxxxxxx
Sent: Wednesday, November 09, 2005 9:42 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] How do I get eclipse/cdt to read from the
standardinput?


>    Maybe I am misunderstanding your answer, but what I am most
> interested in is running my program using the eclipse debugger.
> Therefore, I do not want to run the program using the shell.  In fact,
> the program runs fine if it is started from the shell.
>    Also, I could rewrite the program to accept the filename as an
> argument and create an input stream, but I would like to avoid
tampering
> with the source code as it is someone else's code I am trying to
> understand.  Furthermore, it seems like there ought to be a way to
make
> eclipse do this.  Anybody know?  Please let me know if the question is
> still not clear.

Just had a quick look at the debugger configuration options, and
the 'common' tab seems to provide a 'Standard Input and Output' group.
I'm just guessing, but you might be able to specify your inputfile
there,
so it is used as stdin (corresponding to '< my_input_file').

Regards,
  Wieant
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top