0

I created a Visual C++ test project which contains printf statements. Unfortunately, I can't find a method to view the output of this. It isn't included in the output window. Any suggestions?

1 Answer 1

1

You can redirect standard output to a file and open this file in some auto-refreshing viewer.

UPDATE: Here are two ways to redirect standard output to a file, that I found:

  1. cmd way: C:\Test>myWinApp.exe > log.txt
  2. powershell way: PS C:\Test> .\myWinApp.exe 2>&1 | out-file log.txt

If you want to view the output in real time, you can open log.txt in some file viewer with auto-refreshing option. see link

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.