I want to see the text a program prints to stderr.
I can't see it because the program can only be launched by its launcher so nothing is shown when it's run from the command prompt; the program runs and then the command prompt immediately returns for input instead of blocking and displaying the output.
Can you think of any technique, even an ugly hack, that will let me read what's being printed to stderr?
I have a few ideas but I don't know how to carry them out easily:
- Read the memory of the process at the right location
- Modify the memory of the process to change the stderr handle to one I can read
- Hook the API calls that write to stderr
- Hook
CreateProcess
of the launcher and change the output handles