如何在 Windows 10/IIS 10 上附加到 IIS 进程 (w3wp.exe)? [英] How to attach to IIS process (w3wp.exe) on Windows 10/IIS 10?

查看:24
本文介绍了如何在 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 启动并正常显示在附加到进程"对话框中.

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.

这篇关于如何在 Windows 10/IIS 10 上附加到 IIS 进程 (w3wp.exe)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆