Creating a custom Visual Studio Debugger Visualizer for WCF debugging

Starting from Visual Studio 2005, developers can create some debugger assistant components called Debugger Visualizers to help better inspect the data values during source-code debugging. For example, developers can create some custom visualizers for inspecting picture content when debugging through code that deals with Image objects. In this recipe, we will illustrate how you can leverage the Debugger Visualizer to enhance WCF service code-debugging by creating a custom Debugger Visualizer.

How to do it...

In our sample case, we will create a custom Visual Studio Debugger Visualizer for inspecting service endpoint information of a particular ServiceHost object:

  1. Define the custom ...

Get Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.