Debugging a WCF service from a client application
Now that we have a fully working WCF service, let's have a look at the debugging options of this service. We will use our original client, HelloWorldClient
, to discuss the debugging options; so, in the following sections, whenever you come across terms such as client, the client program, or the client application, refer to HelloWorldClient
.
The first and the most common scenario is to start a client program in the debug mode and then step into our WCF service. Next, we will try this option to debug the service.
Starting the debugging process
Follow these steps to start the debugging process from the client application:
- Start Visual Studio as an administrator and open the
HelloWorld
solution. - Change the client program's configuration file to call
HelloWorldService
hosted within IIS Express. Open theApp.config
file inside theHelloWorldClient
project and set the address of the endpoint tohttp://localhost:55859/HostExpressServer/HelloWorldService...