Is there any way to get debug information of a program?

We always put some debug information in our program (c, c++, c# etc.)
take c# for example, if this program called test.exe:
[code]Console.WriteLine("standard output");
Debug.WriteLine("debug info");[/code]
In the cmd line, i wrote [code]test.exe 1>a.txt[/code]
which will print "standard output" in the file 'a.txt',
but how can I put "debug info" into another file? Guess
[code]test.exe 1>a.txt debug>b.txt[/code]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!