Enter the MoloScope

Enter the MoloScope

Mole 2010, Mole 2012, and Mole 2013 are Visual Studio debugger visualizers that enable you to drill into and analyze any program which targets the .NET Framework 3.5 (Mole 2013 .NET Framework 4.0) or above (except Silverlight, Metro or Windows 8 Modern applications, and Windows Phone). It runs in Visual Studio while you are debugging. One of the ways that Mole can help make it easier to debug any application is by giving you immediate access to and control over data in collections.

The MoloScope

Here are some of the things that you can do with the MoloScope:

Inspect Any Object – Immediately view properties and fields of any .NET object.

Navigate Object Graphs – Click on a property or field’s value to drill into that sub-object, and view its properties/fields. You can drill as far into any object graph as you need.

Follow the Breadcrumb Trail – Navigate back to previously visited objects by clicking on items in the breadcrumb trail. Every time you drill into an object it is added to the breadcrumb trail. Mouse over an item in the trail to see the data type of that object.

The Breadcrumb Trail

Multi-Column Sorting – Sort the MoloScope to quickly find the data you need. You can sort by multiple columns at the same time, by holding the Ctrl key while clicking on column headers. Your sort settings are applied every time Mole opens.

Favorites – Mark a property or field as a ‘favorite’ so that it is easy to find every time you run Mole. You can sort the Fav column to bring all favorites to the top of the MoloScope, or just click on the Favorites tab to view them all at once.

Row Filtering – Filter the rows by typing into text fields in the column headers. Multiple filters can be applied at the same time. The rows in the MoloScope that don’t match your filter text are removed as you type. This makes it easy to quickly find what you’re looking for.

Filter the rows to quickly find what you need

Object Snapshots – Save a snapshot of an object’s properties to disk and compare it to another object or the same object at a later point in time. This makes it easy to detect differences between objects and track changes to an object over time. Properties with values different from the loaded snapshot are highlighted in red. Sort by the Value column to bring the properties with different values to the top. You can access this functionality via the MoloScope menu item, in the Window’s main menu.

Comparing two objects

Editing – Modify the value of any property or field whose value can be changed. The new value is assigned to the real live object in your application.

Editing property values

Property Metadata – View information about each property or field; such as its name, value, and data type. When Moling a WPF application, the MoloScope displays additional information related to dependency properties.

Drill Into Bindings – If a property is bound you can click on the icon in the Binding column to drill into the applied data binding (for WPF and Windows Forms applications only).

Drilling into data bindings in WPF

View Collections of Data – If you need to look at objects in a collection, just open the Collection Viewer window to see all of the objects at once. It even supports collections with different types of objects in it.

Collection Data in the MoloScope

Export to Excel – Export a collection of data to a CSV file and then you can view it in Excel.

Adjust Column Layout – You can easily reorder and resize the MoloScope columns to suit your preferences. Your preferred column arrangement is applied every time Mole opens.

Copy to Clipboard – Copy a property or field’s value to the clipboard via the context menu.

The MoloScope's context menu

Get Assistance – Search the Web for documentation about any property in the MoloScope. Help is just a right-click away.