Debugging WCF Services

For the most part, you debug a web service (or Windows Communication Foundation service) using the same tools and techniques we’ve discussed to this point. The key to debugging services is properly attaching to them. There are basically two options for this. The first option is to step into a service directly from within code you are debugging (a client calling a service). The second option is to attach to a service that has already been called by a client. Let’s look at these options.

Stepping into a WCF Service

You can step directly into a WCF service provided that your calling code (or client) has a two-way contract with the service. This is called a Duplex Contract and it enables the client and the service to communicate ...

Get Microsoft® Visual Studio® 2010 Unleashed 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.