Visual Studio Tracepoints, how did I live without thee?

by 28. May 2010 20:17

Straight from the "How have I been using this product for 8 years and never saw this?" files, I bring you the Tracepoint!

Typically when I need to dump values out, I will either put a label on a page and set the value, do a Response.Write(), or Debug.WriteLine(). Well today, for some reason I right clicked in the code in the IDE and went to the "Breakpoint" section in the menu, lo and behold I see "Insert Tracepoint". In a nutshell, this will let you dump data to the Debug Output window, much like Debug.WriteLine but without adding the extra code.

Pretty handy stuff, and a great alternative to adding debug code.

MSDN's info:
http://msdn.microsoft.com/en-us/library/232dxah7%28VS.80%29.aspx

Tags: , , ,

.NET | Development


RecentComments

Comment RSS