How do you attach a debugger to a Web service?

后端 未结 5 417
南方客
南方客 2021-01-23 08:07

I am using a Web service. Can anybody tell me how to debug through it?

相关标签:
5条回答
  • 2021-01-23 08:49

    If you have control over the webservice, it's as simple as adding it to your solution, running it from localhost (or a server you have the proper credentials for) and then stepping into it through the IDE.

    If you don't have control over it, you're out of luck and at the mercy of whomever is providing it.

    0 讨论(0)
  • 2021-01-23 08:51

    Debugger.Launch();

    when you add this to your code(which is back of your server) you can debug

    0 讨论(0)
  • 2021-01-23 08:54

    Attach to the instance of w3wp.exe in which your application pool is executing.

    0 讨论(0)
  • 2021-01-23 08:54

    this solution is for debugging asmx or wcf-webservices:
    attach to the process of the service (w3wp), not the client!

    0 讨论(0)
  • 2021-01-23 08:58

    That all depends, do you have the webservice, or are you trying to debug the webservice through an application that connects to the webservice?

    0 讨论(0)
提交回复
热议问题