1

How can I redirect everything printed onto the command prompt to be printed onto the output window in Visual studio 2012? I am looking for a console as shown in eclipse.

I am developing a console application in visual C++.

I tried "using namespace System::Diagnostic" but this way I don't see any Debug.WriteLine in suggestions. What other alternative do I have?

4

1 Answer 1

1

This question is answered here. Anyway you should try work different approach, you may be used to Eclipse a I believe, you will get used to Visual Studio soon. I never needed to redirect the console output to Output Window.

These two types of outputs has different purposes. Console Output is intended for the application itself (customer) and one Output Window is intended for debugging purposes. You don't want to release debug messages to customer. Right? But you don't want to delete or comment out debug messages every time you release the software.

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.