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?

>    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


Back to the top