<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Edwin M Sarmiento&gt;LINQ to SQL Debug Visualizer in Visual Studio 2008 &#8211; Edwin M Sarmiento</title>
	<atom:link href="https://www.edwinmsarmiento.com/linq-to-sql-debug-visualizer-in-visual-studio-2008/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.edwinmsarmiento.com</link>
	<description>Intentional Excellence</description>
	<lastBuildDate>Mon, 13 Apr 2026 21:00:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">84283043</site>		<item>
		<title>&gt;LINQ to SQL Debug Visualizer in Visual Studio 2008</title>
		<link>https://www.edwinmsarmiento.com/linq-to-sql-debug-visualizer-in-visual-studio-2008/</link>
		<comments>https://www.edwinmsarmiento.com/linq-to-sql-debug-visualizer-in-visual-studio-2008/#respond</comments>
		<pubDate>Tue, 29 Jan 2008 09:33:00 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/2008/01/29/linq-to-sql-debug-visualizer-in-visual-studio-2008</guid>

				<description><![CDATA[&#62; There are debug visualizers in Visual Studio which helps debugging code a lot easier for developers. I first encountered this in Visual Studio .NET 2003 (if I can remember correctly) and I can simply display my debugger text, HTML or in XML. I normally use this whenever I pass parameter variables or even SQL [&#8230;]]]></description>
					<content:encoded><![CDATA[<p>&gt;</p>
<div>
<div>
<div><span style="font-family:arial;">There are debug visualizers in Visual Studio which helps debugging code a lot easier for developers. I first encountered this in Visual Studio .NET 2003 (if I can remember correctly) and I can simply display my debugger text, HTML or in XML. I normally use this whenever I pass parameter variables or even SQL statements just to check if they were indeed passed correctly. Now that we have LINQ in .NET Framework 3.5, I was thinking that Visual Studo 2008 will have the same thing. Unfortunately, out-of-the-box Visual Studio 2008 does not have it. Good thing Scott Guthrie, a program manager at Microsoft, <a href="http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx">blogged about LINQ to SQL Debug Visualizer</a>. This is the ability to hover over a LINQ expression while in the debugger mode and check the raw SQL that the compiler will ultimately execute at runtime when evaluating the LINQ query expression. You can even execute the SQL code and see the generated result.</span></div>
<p></p>
<div><span style="font-family:Arial;"></span></div>
<p><img decoding="async" height="183" alt="" src="http://bp2.blogger.com/_gUXglSRIBgM/R57-hRlhZhI/AAAAAAAAABg/C3j5CnTmxrg/s200/LINQ2SQL_Visualizer.jpg" width="235" border="0" /><span style="font-family:arial;">Like I said, it does not come out-of-the-box in Visual Studio 2008. Scott provided the <a href="http://www.scottgu.com/blogposts/linqquery/SqlServerQueryVisualizer.zip">source code and assembly</a> to integrate it inside Visual Studio 2008. To install the LINQ to SQL Debug Visualizer component, do the following</span> </p>
<ol>
<li><span style="font-family:arial;">Close all running versions of <strong><span style="font-size:85%;">Visual Studio 2008</span></strong></span> </li>
<li><span style="font-family:arial;">Copy the <strong><span style="font-size:85%;">SqlServerQueryVisualizer.dll</span></strong> assembly from the <strong><span style="font-size:85%;">bindebug</span></strong> directory in the <strong><span style="font-size:85%;">.zip</span></strong> download above into your local <strong><span style="font-size:85%;">Program FilesMicrosoft Visual Studio 9.0Common7PackagesDebuggerVisualizers</span></strong> directory</span></li>
<li><span style="font-family:arial;">Open <strong><span style="font-size:85%;">Visual Studio 2008</span></strong> again. </span></li>
</ol>
<p><span style="font-family:arial;">Now, when you use the debugger with your LINQ to SQL code, you should be able to hover over your LINQ query expressions and have the <strong><span style="font-size:85%;">LINQ to SQL Debug Visualizer</span></strong> option available for you. You can even see the results of your query if you wish to execute it prior to seeing the results on your application.  Go try it out now and see for yourselves</span></p>
<p><img decoding="async" alt="" src="http://bp1.blogger.com/_gUXglSRIBgM/R58DPxlhZjI/AAAAAAAAABw/mVWH5egteUM/s320/LINQ2SQL_Visualizer_Query.jpg" border="0" /><br /><img decoding="async" alt="" src="http://bp3.blogger.com/_gUXglSRIBgM/R58DZRlhZkI/AAAAAAAAAB4/fNEAtbZFkBc/s320/LINQ2SQL_Visualizer_Query2.jpg" border="0" /></p>
</div>
</div>
<div class="blogger-post-footer"><img width='1' height='1' src='' alt='' /></div>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/linq-to-sql-debug-visualizer-in-visual-studio-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">71</post-id>	</item>
	</channel>
</rss>