A Bit Of History
As some of you may recall some time ago (seems like ages) Josh Smith (WPF Guru) wrote a Visual Studio DebuggerVisualizer which he called WoodStock, then some time later Joshs protÃ©gÃ© Karl Shifflett wrote a new DebuggerVisualizer called Mole which was and still is an extremely useful debugging aid when developing WPF apps.
After Karl wrote the 1st draft of Mole, he quickly contacted Josh and they joined forced to create various flavours/versions of Mole, before being joined by Andrew Smith from Infragistics (whom Josh calls a guru, now Karl calls Josh a guru, so I think you can see what sort of calibre of people are involved with Mole).
So that was then, that was all a about a year ago, many moons have passed since then, so what have team Mole been up to, well it turns out they have been very very busy bunnies indeedâ€¦.Team Mole have only gone and rewritten Mole entirely. They are calling the new offering Mole 2010.
Now I should point out that the new Mole 2010 is not a free tool, as its predecessors were, but I think the new version is way way better than the old versions, and you can take it for a demo ride before you decide.
I think it is fairly well priced at $49.99, for what it can do for you as a developer.
Now I know it sounds like I am trying to push Mole 2010, which I guess I am in some way, Josh and Karl are both friends and I want their venture to go well. That said I told Josh that I would not be blogging about Mole 2010 until I had taken it for a test ride and was comfortable with what it did and I would only be telling people the truth about it. It just happens that the truth is that it is a very cool useful tool, and I can not think of much that is actually missing.
Enough Enoughâ€¦..Lets Have A Look At Mole 2010
As I stated Mole 2010 is a Visual Studio (2010) debugger visualizer which you can use instead of the default debugger visualizer, and when you you choose to do that you will get into the Mole 2010 interface.
So say I have some breakpoint as such.
It can be seen that I now get a Mole 2010 option, so letâ€™s accept that and see what we get
This is what looks like when it launches it offers these sorts of view when it first loads
Lets further examine some of these.
From here we can drill as far into the VisualTree as we wish, and we can set things to expand or be used as initial node etc etc
The LogicalTree view is the same sort of thing except we only see the items in the logical tree.
This is able to show a snapshot of the xaml as it would be rendered, which you may choose to save as an image. You may also control this updates Auto or Manually.
We are also able to see XAML snippets for selected item in the VisualTree/LogicalTree
This is one of my favourite areas, where we can see what all of the property/fields of certain VisualTree/LogicalTree elements are set to. We can also choose to make certain ones favourites, so they will appear in the favourites list.
We are also able to drill in to collections, as shown above, whilst still maintaining a complete breadcrumb of where we have visited.
For another example lets follow some Style.Triggers
I am sure you will agree that is pretty powerful.
Visual Studio Like IDE
You can actual pin/arrange things just as you would in Visual Studio
More Mole 2010 Information
The creators of mole have written a sponsored article over at codeproject:
Anyway that is all I wanted to say about Mole 2010, whether you buy it or not it up to you, I would recommend downloading the demo version and at least taking it for a test drive, it really is quite a cool tool.