<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>T is for… Tracepoint</title><link>http://blogs.msdn.com/b/jimoneil/archive/2009/05/18/t-is-for-tracepoint.aspx</link><description>I’ve presented various sessions on Debugging Tips and Tricks as part of the Northeast Roadshow and MSDN Events series, and one of the undiscovered gems in that presentation is that of tracepoints.&amp;#160; Tracepoints have actually been around since Visual</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: T is for… Tracepoint</title><link>http://blogs.msdn.com/b/jimoneil/archive/2009/05/18/t-is-for-tracepoint.aspx#9890697</link><pubDate>Thu, 03 Sep 2009 05:55:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9890697</guid><dc:creator>Jim O'Neil</dc:creator><description>&lt;p&gt;I noticed the EnvDTE90a.Breakpoint3 interface has what you need. &amp;nbsp;I hacked this together and it seems to work (it doesn't look like a tracepoint - with the diamond - until you run the debugger)&lt;/p&gt;
&lt;p&gt;Public Module Module1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Sub addTracepoint()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DTE.Debugger.Breakpoints.Add(Function:=&amp;quot;Main&amp;quot;, Line:=1)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim bp As EnvDTE90a.Breakpoint3&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bp = DTE.Debugger.Breakpoints.Item(1)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bp.Macro = &amp;quot;Macros.MyMacros.Module1.foo&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bp.BreakWhenHit = False&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Sub foo()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MsgBox(&amp;quot;Got here!&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;
&lt;p&gt;End Module&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9890697" width="1" height="1"&gt;</description></item><item><title>re: T is for… Tracepoint</title><link>http://blogs.msdn.com/b/jimoneil/archive/2009/05/18/t-is-for-tracepoint.aspx#9890605</link><pubDate>Thu, 03 Sep 2009 00:51:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9890605</guid><dc:creator>Daniel D Lindmark</dc:creator><description>&lt;p&gt;How do you add a tracepoint programatically?&lt;/p&gt;
&lt;p&gt;I can add a breakpoint programmatically, but I want to add a breakpoint that triggers a macro.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9890605" width="1" height="1"&gt;</description></item><item><title>re: T is for… Tracepoint</title><link>http://blogs.msdn.com/b/jimoneil/archive/2009/05/18/t-is-for-tracepoint.aspx#9884302</link><pubDate>Wed, 26 Aug 2009 02:33:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9884302</guid><dc:creator>Jim O'Neil</dc:creator><description>&lt;p&gt;I don't think there's anything built in. &amp;nbsp;There's an option to redirect output window to immediate window, which doesn't help here, but I'm thinking that if they did that surely they would have considered writing to a file too and yet there is no similar option. &amp;nbsp;I suspect this might be doable via Visual Studio extensibility, and I've asked a few folks to find out if something like this might already be floating out there.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9884302" width="1" height="1"&gt;</description></item><item><title>re: T is for… Tracepoint</title><link>http://blogs.msdn.com/b/jimoneil/archive/2009/05/18/t-is-for-tracepoint.aspx#9883426</link><pubDate>Tue, 25 Aug 2009 12:29:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9883426</guid><dc:creator>ddas-edEn</dc:creator><description>&lt;p&gt;Thanks for the article. I have successfully implemented the way you have descibled using the &amp;quot;When Breakpoint is Hit&amp;quot; dialog.&lt;/p&gt;
&lt;p&gt;Now, I want to redirect the output to a text file instead of the Output window. Can you please provide some tips how to go about it?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9883426" width="1" height="1"&gt;</description></item><item><title>re: T is for… Tracepoint</title><link>http://blogs.msdn.com/b/jimoneil/archive/2009/05/18/t-is-for-tracepoint.aspx#9628337</link><pubDate>Tue, 19 May 2009 18:56:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9628337</guid><dc:creator>Jim O'Neil</dc:creator><description>&lt;p&gt;Thank you for the positive feedback! &amp;nbsp;There are definitely a number of cool things buried in the debugger. &amp;nbsp;You might want to check out my colleague's Channel 9 videos that cover the same materials I used on our Roadshow. &amp;nbsp;He's got three up there now, but I think there are more coming: &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://channel9.msdn.com/Search/?Term=Brian"&gt;http://channel9.msdn.com/Search/?Term=Brian&lt;/a&gt; Hitney&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9628337" width="1" height="1"&gt;</description></item><item><title>re: T is for… Tracepoint</title><link>http://blogs.msdn.com/b/jimoneil/archive/2009/05/18/t-is-for-tracepoint.aspx#9628196</link><pubDate>Tue, 19 May 2009 18:28:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9628196</guid><dc:creator>Robert</dc:creator><description>&lt;p&gt;Thanks so much for this! Seriously, i hate that there are so many undiscovered (to me) trivial features to VS that could of helped save me &amp;nbsp;countless hours of work. &amp;nbsp;This being one of them for sure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9628196" width="1" height="1"&gt;</description></item></channel></rss>