Yet another way to write traces to the "Output" window of debugger is to use System.Diagnostics.Debugger.Log method:
public static void WriteToDebugger(String message)
{
Debugger.Log(0, null, message);
Debugger.Log(0, null, Environment.NewLine);
}