DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Yuriy Galanter Guest

    Debugging a Web service

    I have 2 projects in my solution a Web service and a Windows client that
    uses it (referencing it via it's Add Web Reference URL). When I am trying to
    debug and the clients makes a call to a method in the Web service, the
    debugger doesn't step into the method, but instead performs it as a single
    step and continues. Is there a way to step into Web service while staring
    debugging from the client?

    Thanks,

    Yuriy Galanter.



  2. #2
    Paul Mc Guest

    Re: Debugging a Web service


    G'day Yuriy.

    Does the web method have the "DebuggerStepThrough" attribute applied? If
    so, remove that and you should be able to step throught it.

    Personally, I use wsdl.exe to generate a proxy for the web service, and include
    that in the client-side project. This proxy always has DebuggerStepThrough
    applied, so I remove this, and have always been able to step right through
    into web methods without any issues...

    HTH,
    Cheers,
    Paul

  3. #3
    Yuriy Galanter Guest

    Re: Debugging a Web service

    Paul,

    Thanks for the fast reply. No there wasn't this attribute applied,
    VS.NET IDE doesn't seem to do it. But weird thing happened, I didn't change
    anything, just rebuilt the solution and now I can step into Web methods.
    Weird.
    On related topic, can the same be done with stored procedures? For
    example when a command object calls a stored procedure - to step into it and
    perform line by line?

    Yuriy.


    "Paul Mc" wrote:

    >
    > G'day Yuriy.
    >
    > Does the web method have the "DebuggerStepThrough" attribute applied? If
    > so, remove that and you should be able to step throught it.
    >
    > Personally, I use wsdl.exe to generate a proxy for the web service, and

    include
    > that in the client-side project. This proxy always has DebuggerStepThrough
    > applied, so I remove this, and have always been able to step right through
    > into web methods without any issues...
    >
    > HTH,
    > Cheers,
    > Paul




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links