I am trying to get a Silverlight application to write to an Output / Debug window in Visual Studio 2010.
I tried System.Diagnostics.Debug.WriteLine and System.Diagnostics.Debugger.Log , both of which seem to promise to write output to this window when the VS 2010 debugger is attached to the process.
I am attaching VS 2010 to iexplore.exe, where the Silverlight application is hosted in Silverlight mode, but I still do not see any of the results that I am trying to execute. I see log messages for other things happening in the application; exceptions, loaded modules, death threads, binding errors. What do I need to do in a Silverlight application to enter the same location?
I assume that my alternative is to write to the global StringBuilder and interrupt the process in the debugger and check it, but this is much less convenient than viewing the information, since it is recorded in real time.
source share