<?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>Setting conditional breakpoints using object ids</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx</link><description>In native code, its sometimes useful to set a breakpoint condition so that a breakpoint will only stop for a particular instance of an object. To do this, I simply use the address of the object: this == (CMyObject*)0x10fc10 In managed code, the garbage</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Setting conditional breakpoints using object ids</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#1485745</link><pubDate>Thu, 18 Jan 2007 02:54:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1485745</guid><dc:creator>GuerreroTook</dc:creator><description>&lt;p&gt;it's great, but when i stop debugging, visual studio doesn't remember my Object ID, so always have to set object ID to do condicional debug&lt;/p&gt;</description></item><item><title>re: Setting conditional breakpoints using object ids</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#1485898</link><pubDate>Thu, 18 Jan 2007 03:36:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1485898</guid><dc:creator>greggm</dc:creator><description>&lt;p&gt;Good point. This is because the debugger has no way to presist object ids accross debug sessions. Managed code doesn't have an 'allocation identifier' like native code does.&lt;/p&gt;
</description></item><item><title>Conditional breakpoints for specific managed objects</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#1490069</link><pubDate>Thu, 18 Jan 2007 22:13:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1490069</guid><dc:creator>Jeff Stong</dc:creator><description>&lt;p&gt;Many times I've made use of the ability to set a conditional breakpoint based on the address of object...&lt;/p&gt;
</description></item><item><title>re: Setting conditional breakpoints using object ids</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#1490307</link><pubDate>Thu, 18 Jan 2007 23:54:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1490307</guid><dc:creator>John Schroedl</dc:creator><description>&lt;p&gt;Great tip. &amp;nbsp;I didn't know about object id.&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;</description></item><item><title>re: Setting conditional breakpoints using object ids</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#1498505</link><pubDate>Sat, 20 Jan 2007 17:02:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1498505</guid><dc:creator>Kim Gräsman</dc:creator><description>&lt;p&gt;One issue we see with using the address is that memory blocks are reused frequently, so 0x12345678 doesn't necessarily point to the _same_ object, just to an object of the same type created on the same memory space.&lt;/p&gt;
&lt;p&gt;I'm curious, does the object ID feature handle this somehow?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>re: Setting conditional breakpoints using object ids</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#1498508</link><pubDate>Sat, 20 Jan 2007 17:02:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1498508</guid><dc:creator>Kim Gräsman</dc:creator><description>&lt;p&gt;Oh, and does it work for both native and managed code?&lt;/p&gt;</description></item><item><title>re: Setting conditional breakpoints using object ids</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#1499117</link><pubDate>Sat, 20 Jan 2007 20:34:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1499117</guid><dc:creator>greggm</dc:creator><description>&lt;p&gt;Object IDs work like a WeakReference. So they will always indicate the same object.&lt;/p&gt;
&lt;p&gt;This only works with managed code.&lt;/p&gt;
</description></item><item><title>re: Setting conditional breakpoints using object ids</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#1508247</link><pubDate>Mon, 22 Jan 2007 17:03:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1508247</guid><dc:creator>Wooseok Seo</dc:creator><description>&lt;p&gt;Great tip.&lt;/p&gt;
&lt;p&gt;Many thanks!&lt;/p&gt;
&lt;p&gt;Wooseok.&lt;/p&gt;</description></item><item><title>Debugging Managed Code with Object ID's</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#2180444</link><pubDate>Thu, 19 Apr 2007 00:07:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2180444</guid><dc:creator>jaredpar's WebLog</dc:creator><description>&lt;p&gt;Just found out about a neat way to keep track of managed object references while debugging. Check out&lt;/p&gt;
</description></item><item><title>Setting conditional breakpoints using object ids（译）</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#7300025</link><pubDate>Tue, 29 Jan 2008 09:46:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7300025</guid><dc:creator>winkingzhang</dc:creator><description>&lt;p&gt;原文：&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids"&gt;http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids&lt;/a&gt;....&lt;/p&gt;
</description></item><item><title>Project White and a cool debugging tip</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#7882362</link><pubDate>Sun, 24 Feb 2008 23:41:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7882362</guid><dc:creator>ISerializable - Roy Osherove's Blog</dc:creator><description>&lt;p&gt;Some cool stuff happening in the testing world: * Project white seems like a nice takeoff on winforms&lt;/p&gt;
</description></item><item><title>Links of the Week #25 (week 8/2008)</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#7883626</link><pubDate>Mon, 25 Feb 2008 01:25:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7883626</guid><dc:creator>Bite my bytes</dc:creator><description>&lt;p&gt;Links of the Week #25 (week 8/2008)&lt;/p&gt;
</description></item><item><title>Links of the Week #25 (week 8/2008)</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#7884189</link><pubDate>Mon, 25 Feb 2008 02:12:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7884189</guid><dc:creator>Zunanji viri</dc:creator><description>&lt;p&gt;Development Top-10 Application-Design Mistakes - How not to design your UI. It&amp;amp;#39;s hard not to nod&lt;/p&gt;
</description></item><item><title>Brilliant debugging trick</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#7892467</link><pubDate>Mon, 25 Feb 2008 16:04:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7892467</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
</description></item><item><title>Links for Tuesday 26 February 2008</title><link>http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx#7897915</link><pubDate>Tue, 26 Feb 2008 04:48:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7897915</guid><dc:creator>Richard's Rant</dc:creator><description>&lt;p&gt;Interesting blog post describing some of the shortcomings of ASP.MVC Anotherblog post, this time about&lt;/p&gt;
</description></item></channel></rss>