Subscribe:
|
Categories:
ASP.NET
ast_mono
Asterisk
Code
F#
FreeSWITCH
Guatemala
Humour
IL
Korean
Mei
Misc
Misc. Technology
Personal
Photography
Security
Spammers
VoIP
Sign In
[Giagnocavo]Michael::Write()
Monday, June 14, 2004
Tracepoints in Visual Studio 2005
If you're like me, you find yourself throwing in temporary lines of code to trace your code execution. Console.WriteLine, or perhaps the Trace/Debug classes. However, how many times have you stopped a debugging session to add a very temporary trace line in? Or perhaps you just get tired of adding all those calls and messing up your code?
In Visual Studio 2005, you can now have a breakpoint output a message (or even run a macro) when hit. First, create a breakpoint, and select “When hit“ from its context menu:
You'll get the following dialog with a lot of cool options:
Notice all the different keywords allowed, as well as variable evaluation. When you run the app, the tracepoint output is sent to the output pane. Variables in curly braces are evaluated, and even cooler, you can hover over variable names to get details:
Very, very nice.
Code
Monday, June 14, 2004 12:41:07 AM UTC
Comments [0]
|
Trackback
Tracked by:
"http://tpoaef7.biz/huntsville-speedway-us.html" (http://tpoaef7.biz/huntsville-...
[Pingback]
Name
E-mail
Home page
Remember Me
Comment (HTML not allowed)
Enter the code shown (prevents robots):
Live Comment Preview