How do I attach the debugger to IIS instead of ASP.NET Development Server?

前端 未结 5 1659
[愿得一人]
[愿得一人] 2020-11-30 22:45

I have an ASP.NET website and when I press F5 it automatically attaches to the ASP.NET Development Server, how do I attach to IIS worker process instead when I press F5?

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 23:36

    Debug->Attach To Process...

    Select the aspnet_wp.exe process from the list.

    If you're running IIS > version 5 the process will be w3wp.exe, and there will be one for every app pool (so if you don't know which app pool you're hitting, you'll need to attach to all of them).

提交回复
热议问题