|
|
eclipse debugging and standard input
My program is a parser that accepts standard input and should beexecuted like:cat file.txt | javaprogramI want to debug it, but I do not know how to put stuff into my program(standard input) from Eclipse. In the open debug dialog, the commontab, there is a section that says Standard input and output, but Ihave no idea how it works.Any idea or link on how can I introduce stuff into the standard inputof my program in the Eclipse debugging section. Hope I have explainedmyself correctly.Thanks
|
|
0
|
|
|
|
Reply
|
jordilin
|
1/11/2008 3:26:07 PM |
|
jordilin wrote:> My program is a parser that accepts standard input and should be> executed like:> cat file.txt | javaprogram> I want to debug it, but I do not know how to put stuff into my program> (standard input) from Eclipse. In the open debug dialog, the common> tab, there is a section that says Standard input and output, but I> have no idea how it works.> Any idea or link on how can I introduce stuff into the standard input> of my program in the Eclipse debugging section. Hope I have explained> myself correctly.> ThanksIn your Eclipse you should have a "Console" tab at the bottom.(If not, you can make it visible by selecting "Window - Show View - Console" from the menu bar)Start your Java application with the Run/Debug dialog, without standard-input-redirection ("cat file.txt |").In order to provide data to standard input, just select the "Console" tab (so that it gets the focus) and type in.You can also use copy&paste (right click onto the Console to get a context menu with a "Paste" item).The "Console" will display standard input/output/error in green/black/red.-- Thomas
|
|
0
|
|
|
|
Reply
|
Thomas
|
1/11/2008 4:16:54 PM
|
|
|
1 Replies
523 Views
(page loaded in 0.204 seconds)
Similiar Articles: eclipse debugging and standard input - comp.lang.java.programmer ...My program is a parser that accepts standard input and should beexecuted like:cat file.txt | javaprogramI want to debug it, but I do not know how to p... How to consult prolog program in Eclipse? - comp.lang.prolog ...eclipse debugging and standard input - comp.lang.java.programmer ... How to consult prolog program in Eclipse? - comp.lang.prolog ... eclipse debugging and standard input ... how to debug forked child in eclipse CDT - comp.unix.programmer ...... how to debug forked child in eclipse CDT - comp.unix.programmer ... How to consult prolog program in Eclipse? - comp.lang.prolog ... eclipse debugging and standard input ... Chart for Eclipse shortcut key - comp.lang.java.programmer ...MetaFilter How can I have multiple Copy & Paste shortcut keys ... eclipse debugging and standard input - comp.lang.java ... copy of a table out of a pdf file - comp.text ... eclipse debugger return from "stepped into" function - comp.lang ...eclipse debugging and standard input - comp.lang.java.programmer ... eclipse debugger return from "stepped into" function ..... unix.programmer... but i couldn't get it to ... Use Eclipse to run Java web start application - comp.lang.java ...eclipse debugging and standard input - comp.lang.java.programmer ... Use Eclipse to run Java web start application - comp.lang.java ... eclipse debugging and standard ... Problem of debugging into glibc functions? - comp.unix.programmer ...eclipse debugging and standard input - comp.lang.java.programmer ... eclipse debugger return from "stepped into" function ... difficulties with the select() function ... How do I redirect server's standard output to socket? - comp.unix ...eclipse debugging and standard input - comp.lang.java.programmer ..... Eclipse now has a C++ plug-in, with a visual debugger - with it, you can see the compiler step ... Setting the working directory of an eclipse rcp application - comp ...eclipse debugging and standard input - comp.lang.java.programmer ... Setting the working directory of an eclipse rcp application - comp ... Hi,I'm working on a eclipse rcp ... matlab crashes (win 7 64 bit) without messages, logs or dumps ...I used eclipse and the gnu-debugger to attach to matlab and set a breakpoint at the very first ... int n_output, mxArray *output[], int n_input, const mxArray *input ... eclipse debugging and standard input - comp.lang.java.programmer ...My program is a parser that accepts standard input and should beexecuted like:cat file.txt | javaprogramI want to debug it, but I do not know how to p... eclipse debugging and standard input - Velocity Reviews - Computer ...My program is a parser that accepts standard input and should be executed like: cat file.txt | javaprogram I want to debug it, but I do not know how to put stuff into my 7/22/2012 11:12:05 AM
|
|
|
|
|
|
|
|
|