The cout method only helps me when i've gotten code to compile and I don't get expected output on a test case. I usually run the program in a "window" right next to the code so I can follow the code and the output line by line in real time. Never tried the stderor/file method because this method has provided success stories too numerous to count, with rare failures.