Debugging a WCF Service

Start an instance of Visual Studio

Open the WCF solution and run the service

Open another instance of Visual Studio

Open a WCF client project…add the WCF service project to the solution

Add this to the client’s .config file…whether it be the web.config or the app.config

<system.web>
  <compilation debug="true" />
<system.web>

Set the client project as the start-up project

Set a breakpoint in the WCF client app and start the WCF client app

You should now be able to step into the code in the WCF service

About w4ik

software engineer...in the trenches
This entry was posted in ASP.Net and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s