Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Stepping Into an XML Web Service

This topic applies to:

Visual Studio Edition

Visual Basic

C#

C++

J#

Visual Web Developer

Express

No

No

No

No

No

Standard

No

No

No

No

Yes

Pro/Team

Yes

Yes

No

Yes

Yes

When a managed client calls a managed XML Web service, the Visual Studio debugger can automatically step between the client and the XML Web service. You can step into an XML Web service as though you were stepping into an ordinary function call. Stepping into an XML Web service is possible when both the client and the service are written in managed code. Stepping occurs automatically across threads, processes, and even machines.

When you step into an XML Web service call, the debugger automatically attaches to the ASP.NET worker process, aspnet_wp.exe or w3wp.exe. For more information, see ASP.NET Debugging: System Requirements. The ASP.NET worker process can be on the local machine or on a remote machine.

NoteNote

To attach to ASP.NET worker process, you must be an Administrator on the machine where the process is running.

NoteNote

If you want to debug both managed and unmanaged code, both types of debugging must be enabled in your project. You can enable unmanaged debugging by choosing the Enable Unmanaged Debugging option in the <Project> Property Pages dialog box.

When the execution breaks in the XML Web service, you can view a merged callstack that contains calls from both the client and the XML Web service. To see all the information, you may need to enable the display of calls between threads.

To display calls between threads

  1. Right-click the Call Stack window.

  2. On the shortcut menu, click Include Calls To/From Other Threads.

    Once you have stepped into the XML Web service, you can use all the ordinary execution commands such as Step and Continue. At the end of the XML Web service call, you can step out and back into the client that called the XML Web service.

    When you step out of an XML Web service, the debugger remains attached to the ASP.NET worker process. The debugger detaches from the ASP.NET worker process when you end the debugging session, by choosing Stop Debugging from the Debug menu, for example. You can manually detach the ASP.NET worker process by choosing Detach All from the Debug menu.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft