Discussion:
Redirecting stdin/stdout
(too old to reply)
Paul D. DeRocco
2008-12-28 23:29:14 UTC
Permalink
Is there any way, in VS2008, to debug a filter console app which reads from
stdin and writes to stdout, and assign files to those handles in the IDE? I
don't see any way to get data into and out of the program while debugging,
short of typing or pasting it into the console window and reading the
results.
--
Ciao, Paul D. DeRocco
Paul mailto:***@ix.netcom.com
Michael Makuch
2009-01-02 06:23:23 UTC
Permalink
Post by Paul D. DeRocco
Is there any way, in VS2008, to debug a filter console app which reads from
stdin and writes to stdout, and assign files to those handles in the IDE? I
don't see any way to get data into and out of the program while debugging,
short of typing or pasting it into the console window and reading the
results.
One way to do it; initiate the process to be debugged first, then attach
to it with VS. You might have to arrange for your app to pause for you
while you attach to it.
Onega
2009-02-14 06:47:58 UTC
Permalink
Post by Paul D. DeRocco
Is there any way, in VS2008, to debug a filter console app which reads from
stdin and writes to stdout, and assign files to those handles in the IDE? I
don't see any way to get data into and out of the program while debugging,
short of typing or pasting it into the console window and reading the
results.
If it is not convenient to start your application from Debugger
manually, you can setup registry to have OS start debugger and attach to
your process.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image
File Execution Options\Your Image File Name Here without a path]

Debugger=“C:\\Debuggers\\windbg.exe”

Other debuggers can also be used, like “vsjitdebugger.exe”, “ntsd -d”
Loading...