How to debug a remotely hosted WCF web service

13,266

I see two possibilities:

  1. Local debugging: For debugging, run your service on your local machine. If you want to run it on the local IIS, simply start a second instance if VS2010 and attach to the w3wp.exe process (menu Tools -> Attach to process)

  2. Remote Debugging: You have to install and start the VS2010 remote debugger on the server. Start a second instance of VS2010 on your development box and connect to the remote debugger with menu Tools -> Attach to process.

See msdn for more information about remote debugging with VS2010.

Share:
13,266
Emil D
Author by

Emil D

Your average code monkey, looking for his place in the world:))

Updated on June 21, 2022

Comments

  • Emil D
    Emil D almost 2 years

    I am new to WCF web service development and I can use some help. I have a simple web service written in C# that I'm hosting on a remote server (it's hosted on IIS 5.1). I've written a client application for that web service that I'm running on my workstation.I am able to connect to the service without any problems. However, I would like to be able to debug the web service.I need to be able to step through the code, set breakpoints, etc.How do I achieve that from my local machine? I'm using Visual Studio 2010. Thank you in advance.