Moling WinForms

Moling WinForms

Mole 2010 and Mole 2012 are Visual Studio debugger visualizers that enable you to drill into and analyze any program which targets the .NET Framework 3.5 or above (except Silverlight, Metro and Windows Phone). It runs inside Visual Studio while you are debugging. Mole has extra features that make it even easier to debug applications written on certain platforms, such as Windows Forms. In addition to all of the core capabilities in Mole, WinForms developers can also leverage the following features.

Control Hierarchy



The Element Tree tool displays UI controls that make up your WinForms user interfaces. It will display the standard Windows Forms controls, and all third-party controls that you use in your applications. The selected control’s properties are displayed in the MoloScope area. Use the search box to quickly find the controls you’re interested in. You can access convenient features in the context menu; such as setting a new root node in the tree, or copying a control’s ancestor path to the clipboard.

Control Snapshot



The Snapshot pane shows a visual rendering of the control selected in the Element Tree. The toolbar above the snapshot image allows you to quickly copy the image to the clipboard, change the background color, and determine what triggers the image to update as you explore your application in Mole.

Drill Into Data Bindings

Windows Forms user interfaces can use data bindings to attach a control’s properties to a data source. Mole 2010 allows you drill into these bindings to inspect their settings. When exploring a WinForms application the MoloScope has a Binding column, as seen below:

After you click on the Drill icon you can examine the Binding object applied to the property.