mark
mark

Reputation: 62886

How to tell windbg to connect stdin of a debugged process to a certain file?

I am starting an app from the debugger. How can I connect a certain file as the stdin of the debugged process?

EDIT

Here is the command line I use:

windbg -logo c:\dumps\dbg.log -QY -awow64exts -c "!sw;g;g" c:\dev\LocalDriverProxyConsole.exe

LocalDriverProxyConsole.exe expects some input on the stdin, but I want to supply it from file. It is a trivial redirection when the app is ran directly, but what do I do if I run it through windbg?

Upvotes: 4

Views: 815

Answers (1)

Serg
Serg

Reputation: 2180

windbg -logo c:\dumps\dbg.log -QY -awow64exts -o cmd -c "c:\dev\LocalDriverProxyConsole.exe < 1.txt"

Upvotes: 5

Related Questions