0

I have a console application that uses an assembly that I cannot modify. Said assembly has a conditional define to output debug data via Trace.WriteLine() when the configuration of the application is Debug.

Now in my console application this means that I get heaps of data output to the console window which I don't want.

So is there anything I can do in my console application (I still want to build and run it with Debug configuration) so that I can redirect the output of those Trace.WriteLine() elsewhere when running with a Debug configuration? Say to a text file?

Camilo Terevinto
  • 29,179
  • 6
  • 82
  • 109
TheEdge
  • 8,611
  • 14
  • 61
  • 125

0 Answers0