On Linux, Debugging a C++ application with gdb in Eclipse CDT, how to input something to stdin? -
On Linux, Debugging a C++ application with gdb in Eclipse CDT, how to input something to stdin? -
on linux, trying debug c++ application gdb in eclipse cdt.
for illustration application applic.exe
takes command line arguments arg1
, arg2
, expects info on stdin
(say, taken file input.txt
).
normally, run application in console this:
cat input.txt | applic.exe arg1 arg2
using gdb in console can do:
gdb applic.exe (gdb) run applic.exe arg1 arg2 < input.txt
is possible gdb in eclipse? know how specify arguments (and environment) in eclipse debug configurations, stdin
?
there console tab in eclipse (at bottom of ide) can set info here.
c++ eclipse gdb stdin cdt
Comments
Post a Comment