<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Defrag Tools: #20 - WinDbg - Basic Commands</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-20-WinDbg-Basic-Commands/RSS"></atom:link>
	<image>
		<url>http://media.ch9.ms/ch9/9c04/95b63a75-b936-459a-b725-bd26e1789c04/DefragTools20_220.jpg</url>
		<title>Channel 9 - Defrag Tools: #20 - WinDbg - Basic Commands</title>
		<link></link>
	</image>
	<description>In this episode of Defrag Tools, Andrew Richards, Chad Beeder&amp;nbsp;and Larry Larsen continue looking at the Debugging Tools for Windows (in particular WinDbg). WinDbg is a debugger that supports user mode debugging of a process, or kernel mode debugging of a computer. This installment goes over the commands used to show the state of debug session. It also shows some of the basic commands used to view process and thread information of a user mode process. We&amp;nbsp;cover these commands: version vertarget | || .sympath .srcpath .exepath .extpath .chain !analyze -v .bugcheck !error ~ ~NNs ~~[TID]s ~*k ~*r !process 0 17 !threads !findstack !uniqstack !peb !teb k= &amp;lt;addr&amp;gt; &amp;lt;addr&amp;gt; &amp;lt;frames&amp;gt; dps dpu dpa dpp .reload /f .reload /user !gle !tls Make sure you watch Defrag Tools Episode #1 for instructions on how to get the Debugging Tools for Windows and how to set&amp;nbsp;the required environment variables for symbols and source code resolution. Resources: Microsoft Windows SDK for Windows 7 and .NET Framework 4 System Error Codes Timeline: [01:01] - Live Debug of Notepad[02:14] - Overview of the debug session (version)[03:10] - OS Version/Architecture&amp;nbsp;and System/Debug/User/Kernel times (vertarget)[09:03] - Process and System Status (| {pipe}, || {double pipe})[10:16] - Symbol Path (.sympath)[10:52] - Source Path (.srcpath)[11:00] - Executable Path (.exepath, lmvm - Memory Mapped Image File)[11:40] - Extension Path (.extpath)[12:20] - Loaded Extensions (.chain)[13:43] - !analyze is for both User and Kernel crashes (!analyze -v)[14:56] - Bugcheck code and arguments&amp;nbsp;(.bugcheck)[15:26] - Error Code Lookup (!error)[16:04] - Threads in a User Process (~ {tilde})[17:33] - Change Current Thread Context (~NNs)&amp;nbsp;[20:13] - Show all the call stacks or registers (~*k, ~*r)[21:04] - Change Current Thread Context by TID (~~[TID]s)&amp;nbsp;[24:18] - Show all the call stacks in all the processes in a kernel session (!process 0 17)[25:29] - Configuration summary of all thread (!threads)[26:54] - Find&amp;nbsp;call stack (!findstack)[27:35] - Unique call stacks (!uniqstack)[28:30] - Process Environment Block (!peb)[30:50] - Thread Environment Block (!teb)[32:02] - Buffer Overflow of a stack variable[33:11] - Call Stack Recreation (k= &amp;lt;addr&amp;gt; &amp;lt;addr&amp;gt; &amp;lt;frames&amp;gt; {x64})[34:40] - Display Pointers as a Symbol, Unicode, ANSI or Pointer (dps, dpu, dpa, dpp)[37:40] - Force the loading of symbols (.reload /f)[38:43] - Force the loading of user symbols in the kernel when you change thread context (.reload /user)Note: /u is for unload, not load user symbols - that&#39;s why Chad is the kernel guy![39:18] - SetLastError/GetLastError value in the TEB (!gle)[40:14] - Thread Local Storage values in the TEB (!tls) &amp;nbsp; </description>
	<link></link>
	<language>en</language>
	<pubDate>Sun, 26 May 2013 03:44:51 GMT</pubDate>
	<lastBuildDate>Sun, 26 May 2013 03:44:51 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: Defrag Tools: #20 - WinDbg - Basic Commands</title>
		<description>
			<![CDATA[<p><em><a href="http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-20-WinDbg-Basic-Commands#time=02m14s">[02:14]</a> - Overview of the debug session (version)</em></p><p><span>Why do you sue such an old WinDbg version and not the versiom from the Win8 SDK?</span></p><p><span><span><span><em><a href="http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-20-WinDbg-Basic-Commands#time=03m10s">[03:10]</a> - System/Debug/User/Kernel times (vertarget)</em><span><span><br></span></span></span></span></span></p><p><span><span><span>Windows doesn't reset this time. </span></span></span></p><p><span><span><span><br>Can you provide a cmdtree files which the users can load with .cmdtree to access the commands faster? I think this is better instead of wrting all commands in the shownotes each time you create a video.</span></span></span></p><p>posted by MagicAndre1981</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-20-WinDbg-Basic-Commands#c634920116775545115</link>
		<pubDate>Tue, 25 Dec 2012 05:54:37 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-20-WinDbg-Basic-Commands#c634920116775545115</guid>
		<dc:creator>MagicAndre1981</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #20 - WinDbg - Basic Commands</title>
		<description>
			<![CDATA[<p>Nice episode! <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-2.gif?v=c9' alt='Big Smile' /> Are you guys gonna cover how to analyze managed memory as well?&nbsp;</p><p>posted by martinmine</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-20-WinDbg-Basic-Commands#c634925513789613805</link>
		<pubDate>Mon, 31 Dec 2012 11:49:38 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-20-WinDbg-Basic-Commands#c634925513789613805</guid>
		<dc:creator>martinmine</dc:creator>
	</item>
	<item>
		<title>Re: Defrag Tools: #20 - WinDbg - Basic Commands</title>
		<description>
			<![CDATA[<p>@<a href="/Shows/Defrag-Tools/Defrag-Tools-20-WinDbg-Basic-Commands#c634925513789613805">martinmine</a>: It's one the road map... <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif?v=c9' alt='Smiley' /></p><p>posted by windev</p>]]>
		</description>
		<link>http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-20-WinDbg-Basic-Commands#c634946667159586167</link>
		<pubDate>Thu, 24 Jan 2013 23:25:15 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-20-WinDbg-Basic-Commands#c634946667159586167</guid>
		<dc:creator>windev</dc:creator>
	</item>
</channel>
</rss>