Directly debugging the WCF service

In the previous section, we started debugging the client program and then stepped into the service program. Sometimes, we might not want to run the client application in the debug mode. For example, if the client application is a third-party product, we won't have the source code, or the client application might run on a different machine altogether. In such cases, if we need to we can run the service in the debugging mode and debug only the service.

Starting the WCF service in the debugging mode

To start the HelloWorldService in the debug mode, first set the HostExpressServer as the startup project. Then, open HelloWorldService.cs from the HelloWorldService project, and set a breakpoint on the first line inside ...

Get WCF Multi-layer Services Development with Entity Framework Fourth Edition 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.