SOS: Upcoming release has a few new commands – DumpXmlDocument

If you have done much debugging with XML data, you know how difficult it can be to look at a System.Xml.XmlDocument.  They don’t just show up in the debugger as XML.  This is where this command comes into play.  It will take a XmlDocument as input and will print out the entire XML for that document.

Note: It does not print out any XmlComments, XmlDeclarations, or other things at the top of the document.

The output from this command looks like:

dumpxmldocument

As you can see, this makes it much easier to look at a System.Xml.XmlDocument in the debugger.

Published 27 June 08 06:00 by Tom
Filed under: , , , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# ecards said on June 28, 2008 4:51 PM:

Tom that is pretty cool, one of those things that seems obvious after the fact.

But you mentioned a future release, when would that be?

I'm already running 2008 SP1 Beta 1

# Tom said on June 29, 2008 11:19 PM:

Ecards,

Take a look at:

http://blogs.msdn.com/tom/archive/2008/06/04/update-coming-for-sos.aspx

Basically, SOS for 2.0 is getting added to the debugger package.

Leave a Comment

(required) 
(optional)
(required) 

Search

Go

This Blog

Syndication

Page view tracker