如何在Windows 10 / IIS 10上附加到IIS进程(w3wp.exe)?

问题描述:

在Windows 8.1中使用Visual Studio 2013,我已经习惯通过附加到运行应用程序池的w3wp.exe进程来调试IIS中托管的应用程序。

Using Visual Studio 2013 in Windows 8.1, I've been used to debug applications hosted in IIS by attaching to the w3wp.exe process running the Application Pool.

从8.1升级到10后,即使选中了显示所有用户的进程复选框,我也无法在附加到进程对话框中看到任何w3wp.exe进程。

After upgrading from 8.1 to 10, I can no longer see any w3wp.exe processes in the Attach to Process dialog even if the Show processes from all users checkbox is checked.

IIS 10中应用程序池的进程名称是什么?也许还有另一种在Windows 10中调试IIS应用程序的方法?

What is the process name for application pools in IIS 10? Maybe there's another way to debug IIS applications in Windows 10?

更新:
问题是所有w3wp.exe进程都有停止。只需通过浏览器点击URL再次启动w3wp.exe进程,我就可以像往常一样进行调试。

UPDATE: The issue was that all w3wp.exe processes had stopped. Simply hitting the URL by a browser again started the w3wp.exe process, and I was able to debug as usual.

某些原因所有w3wp.exe进程都已停止。我只是回收了应用程序池并刷新了浏览器窗口并启动了w3wp.exe并正常显示在Attach to Process对话框中。

For some reason all w3wp.exe processes had stopped. I just recycled the app pool and refreshed the browser window and w3wp.exe started and showed up in the Attach to Process dialog as normal.

我不确定如果这是一个与IIS 10相关的问题,但我从未在早期版本的IIS中遇到过这种情况。

I don't know for sure if this is an IIS 10 related issue, but I never experienced this in earlier versions of IIS.