I'd like to see what value a variable is holding AS the program is running.
I remember Scott Hanselman blogging about something like a Variable Viewbox, but I can't seem to find the post.
I'd like to view the variable AS the program is running it's loop. Inside of Vis开发者_Go百科ual Studio.
Often when there is much data and the logic is difficult to trace..eg . Due to large loops and many variables, then I dump state to comma separated files.. and then inspect them in Excel.
You can specify a tracepoint, which is like a breakpoint but outputs a message instead of stopping the debugger.
http://msdn.microsoft.com/en-us/library/232dxah7.aspx
You can use DebugView from here : http://technet.microsoft.com/en-us/sysinternals/bb896647
just add to your code
System.Diagnostic.Trace.Write(myVar) ;
and see its value in debugView window in real time .
精彩评论