Tuesday, June 17, 2014

WCF Debugging

Got to know a tip for debugging WCF service from my colleague Athik. Sharing it here.

This will get rid of the need to attach process etc. in Visual Studio.

  1. Set the WCF Service Project as start up project for the Visual Studio Solution.
  2. Open the SVC.cs file you want to debug
  3. Click F5 (Debug)
  4. You will be asked to confirm that web.config file will be modified. Say yes. 
  5. You will see "WCF Test Client" and list of methods.
  6. Double click on the method you want to debug, provide parameters and click on Invoke. 
  7. See following screen shot for more details. 

No comments: