Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

Debugging a WebService

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arne - 19 Nov 2004 15:55 GMT
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.
Drew Marsh - 19 Nov 2004 18:56 GMT
> Is there a secret trick to debugging a Web service?
> I compile my web service and test app in debug mode.
[quoted text clipped - 6 lines]
> 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
Magne Ryholt - 30 Nov 2004 20:21 GMT
Is it possible to automate this so we don't need to attach every time we
start a new debug session ?

>> Is there a secret trick to debugging a Web service?
>> I compile my web service and test app in debug mode.
[quoted text clipped - 19 lines]
> HTH,
> Drew
Drew Marsh - 30 Nov 2004 20:55 GMT
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.