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

Comments

???

5/29/2010 6:50:51 AM #

tonehog

You've gone this far without tracepoints / breakpoints?

Ow.

tonehog United States | Reply

???

6/1/2010 6:36:40 PM #

Jerzakie

Just Tracepoints. Breakpoints I knew about. I always just used Debug.WriteLine.

Jerzakie United States | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading




RecentComments

Comment RSS