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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -