How to make web service aspnet_wp.exe automaticly debugging attach

G

Guest

Hi!

I have two projects in my VS2005 solution:

- A "Windows Mobile 5.0 Pocket PC" Device Application.
(Target Device = Windows Mobile 5.0 Pocket PC Emulator)

- An "ASP.NET Web Service" Web Site.
(The web site is running in IIS on my development machine to make it
reachable from the device emulator.)

When starting the device application I really would like to step into the
WebMethod code but that is not possible. And it is obvious why - it is not
even possible to successfully set a breakpoint in the web service. The
breakpoint red dot is not solid, only a circle and the tool tip says "The
breakpoint will currently not be hit. No symbols have been loaded for this
document.". And that is also obvious why - the VS2005 has not automaticly
attached a debugger to the process aspnet_wp.exe.

Yes, Configuration = Debug
Yes, web.config compilation debug="true"

I am already aware of two workarounds:

1. Each time after starting the "Windows Mobile 5.0 Pocket PC" application
then manually "Attach to process -> aspnet_wp.exe". Yes, that makes the red
breakpoint circle in the web service method immediatly becomes solid red, and
the debugger stops. But I want the process to be AUTOMATICLY attached.

2. Open a second instance of the IDE and the solution file. Make the web
service project the "StartUp Project". Yes, that makes the red breakpoint
circle in the web service method immediatly becomes solid red, and the
debugger stops. But I do not want a SECOND IDE instance.

Is it to much to expect that the web service web site should to be
automaticly attached to a debugger. If not, how to set up VS2005?

I have spent 10 hours on this one, what a "rapid application development"
environment VS200 is.

Best regards
Benjamin, Sweden
 
D

Daniel Moth

I haven't tried this at all so I am shooting in the dark but... why don't
you have both projects in the same solution in the same instance of the IDE?
You can have "multiple start up projects" if that is what is stopping you...

Cheers
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top