SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've followed Walkthrough: Creating a Custom ASP.NET Web Service and everything works fine. I just want to know how to enable debugging for this web service over network. Could you help me?

share|improve this question

You can create a client console application for debugging purposes.

Follow the next Steps:

A) Create a Console Application

enter image description here

B) In the Solution Explorer, right-click on your project and select Add Service Reference. and the Add Service Reference dialog, click the Advanced button.

enter image description here

C) In the Service Reference settings dialog, click on the Add Web Reference button.

enter image description here

D) In the "Add Web Reference" dialog, enter your web service URL. for example : http://myserver/_layouts/mywebservice/mywebservice.asmx press enter, and you'll see your methods. Finally press on the "Add Reference" button.

enter image description here

This way you can debug your web service using a console application.

share|improve this answer
thank you for your reply, i need to trace into the web service, i've a piece of code which throws an exception and i need to trace it – Hager Aly Jan 9 '13 at 11:25
up vote 0 down vote accepted

i know it has been long time ago, but i hope it helps some one kindly check the following link: Debug Sharepoint Web Service

share|improve this answer
Hager, please add at least some high-level information regarding the answer. Blogs posts and sometimes entire blogs get deleted. Having at least some information will ensure that others can gain some value from your question/answer in the future. – Robert Kaucher Aug 20 '13 at 15:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.