Is there a way to view console output in the VS ide after console program ends?
-
Hi, I'm working in VS2005, C++. I'm pretty much a C++ newbie. I tend to write a lot of little console programs while i'm learning and testing things out. But of course the console disappears once the program is finished. it would be handy to be able to see the console output after the fact in the ide, and it seems to me there must be a way to do that - i just don't know it yet. any ideas? Thanks, Warre
Warren Sirota www.warrensirota.com
-
Hi, I'm working in VS2005, C++. I'm pretty much a C++ newbie. I tend to write a lot of little console programs while i'm learning and testing things out. But of course the console disappears once the program is finished. it would be handy to be able to see the console output after the fact in the ide, and it seems to me there must be a way to do that - i just don't know it yet. any ideas? Thanks, Warre
Warren Sirota www.warrensirota.com
Try any of the following suggestions 1. Put a getch() at the end of the program so that console application will wait for a key press before it exists. 2. Redirect the output to a text file. For eg in the project settings->debug->Program arguments, if you enter c:\output.txt, all the outputs from the program will go to the text file.
-
Try any of the following suggestions 1. Put a getch() at the end of the program so that console application will wait for a key press before it exists. 2. Redirect the output to a text file. For eg in the project settings->debug->Program arguments, if you enter c:\output.txt, all the outputs from the program will go to the text file.
3: Get a Windows version of the "tee" utility so that the OP can get it both in a file and in the output. Helps with interactive apps or while debugging. Peace!
-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles