How-to debug a VB.NET WebMethod?

Total Post:117

Points:821
VB.Net 
 1732  View(s)
Ratings:
Rate this:

I have an ASP.NET C# project consuming webservices and WebMethods are wrote in VB.NET with source code on a local IIS server. The WebMethod returns null, and I want to debug it to know why I get this.

As you may know, if I set a breakpoint just before the webmethod call, I cant step into this webmethod.

So, how is the correct way to debug this webmethod?

Thank you!

  1. Post:378

    Points:2694
    Re: How-to debug a VB.NET WebMethod?

    Hi jay, 

    Attach the debugger to the server process, put a breakpoint in the web method code and invoke the web method.

    Visual Studio should break within the web method.

Answer