views:

1447

answers:

4

I have IIS 5.1 on a XP machine, and visual studio 2005. How do I go about attaching my debugger to IIS instance.

BTW: I'm not seeing the IIS process within the running processes or probably I don't know what to look for .

+2  A: 

The IIS process is aspnet_wp.exe.

In fact, attaching to the aspnet_wp.exe process is what VS does when you have your project set to use IIS for debugging.

Jimmie R. Houts
+6  A: 

in visual studio.

  1. Click "Debug" from the menu bar
  2. Click "Attach to Process"
  3. Check the "Show processes from all users" checkbox in the bottom left corner
  4. Select aspnet_wp.exe from the process list
  5. Click "Attach"
Al W
Thanks, by any chance do you know how to do this in Vista Business and IIS 7 ?
Mihai Lazar
try to look for w3p.exe process and attached it using the steps above
jerjer
A: 
Mike
A: 

just to clarify Jimmie R. Houts answer ...

If you want to debug the web application VS and IIS .. you can do the following :

1] Host the site inside IIS .(virtual directory etc.)

2] then in VS2005 do this
Right Click on Web Project -> Properties -> Start options --> Use Custom Server ->Base URL -> Enter Site Address as Hosted in IIS .
Hit F5 and you will be able to Debug your code

Same this works for VS 2008 also .

Amitd