469,903 Members | 1,369 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

Debugging a WebService

Is there a secret trick to debugging a Web service?
I compile my web service and test app in debug mode.
The webservice has <compilation defaultLanguage="vb" debug="true" /> in
web.config.
I set breakpoints in my web service.
I try to step into my web services with F11 from my test app.
My webservices executes, but I never reach my breakpoint and my webservice
never executes in debug mode.

Nov 21 '05 #1
3 4866
Arne wrote:
Is there a secret trick to debugging a Web service?
I compile my web service and test app in debug mode.
The webservice has <compilation defaultLanguage="vb" debug="true" />
in
web.config.
I set breakpoints in my web service.
I try to step into my web services with F11 from my test app.
My webservices executes, but I never reach my breakpoint and my
webservice
never executes in debug mode.


The problem is you probably set your test app as the startup project which means the debugger will attach to that process, however it will not automatically attach to ASP.NET's process. You need to explicitly attach to the process by going to Debug -> Processes -> Find and double click aspnet_wp.exe -> Make sure Common Language Runtime is checked off and hit ok.

Now you're debugging both processes and should get the exact debugging experience you're expecting.

HTH,
Drew
Nov 21 '05 #2
Is it possible to automate this so we don't need to attach every time we
start a new debug session ?
"Drew Marsh" <dr****@hotmail.no.spamming.com> wrote in message
news:eR**************@TK2MSFTNGP15.phx.gbl...
Arne wrote:
Is there a secret trick to debugging a Web service?
I compile my web service and test app in debug mode.
The webservice has <compilation defaultLanguage="vb" debug="true" />
in
web.config.
I set breakpoints in my web service.
I try to step into my web services with F11 from my test app.
My webservices executes, but I never reach my breakpoint and my
webservice
never executes in debug mode.


The problem is you probably set your test app as the startup project which
means the debugger will attach to that process, however it will not
automatically attach to ASP.NET's process. You need to explicitly attach
to the process by going to Debug -> Processes -> Find and double click
aspnet_wp.exe -> Make sure Common Language Runtime is checked off and hit
ok.

Now you're debugging both processes and should get the exact debugging
experience you're expecting.

HTH,
Drew


Nov 21 '05 #3
Magne Ryholt wrote:
Is it possible to automate this so we don't need to attach every time
we
start a new debug session ?


Nothing straight forward that I know of, but you might be able to do it with
a Macro.

-Dre

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jon Vaughan | last post: by
2 posts views Thread by Chris Fink | last post: by
reply views Thread by SBS Prem und SQL 2000 mit WSS | last post: by
reply views Thread by S. Berwanger | last post: by
reply views Thread by cam66 | last post: by
3 posts views Thread by Sathyaish | last post: by
reply views Thread by Eric bouxirot | last post: by
reply views Thread by Eric bouxirot | last post: by
reply views Thread by Tim Bücker | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.