Edit

Share via


Step into WCF Services

In Visual Studio, you can step into a WCF service. If the WCF service is in the same Visual Studio solution as the client, you can hit breakpoints inside the WCF Service.

For stepping to work, you must have debugging enabled in the app.config or Web.config file. For information about how to enable debugging and for limitations on stepping into WCF services, see Limitations on WCF Debugging.

To step into a WCF Service

  1. Create a Visual Studio solution that contains both the WCF client and WCF service projects.

  2. In Solution Explorer, right-click the WCF Client project and then click Set as Startup Project.

  3. Enable debugging in the app.config or web.config file. For more information, see Limitations on WCF Debugging.

  4. Set a breakpoint at the location in the client project where you want to start stepping. Typically, this will be just before the WCF service call.

  5. Run to the breakpoint, then begin stepping. The debugger will step into the service automatically.