无法将调试器附加到w3wp [英] Cannot attach debugger to w3wp
问题描述
我正在调试一个 ASP.NET
应用程序,但有时在 w3wp
> Visual Studio 进程列表(菜单:调试 - >附加到进程...
)也不在任务管理器
。我选择了'显示来自所有用户的进程
'和'在所有会话中显示进程
'复选框。当从 localhost
运行项目时,在发生未处理的异常之后,调试器将附加到w3wp(太晚了,我不能进入代码)!
I'm debugging an ASP.NET
application but sometimes cannot find w3wp
neither in Visual Studio
process list (Menu: Debug -> Attach to Process...
) nor in task manager
. I have selected 'Show processes from all users
' and 'Show processes in all sessions
' check boxes. When run the project from localhost
, after an unhanded exception happens debugger would attach to w3wp (too late for me to step into code) !
为什么有时候看不到w3wp?
Why I cannot see w3wp sometimes ?
Windows Server 2008 Enterprise Edition 64-bit, Visual Studio 2010
推荐答案
当您重置IIS或IIS未运行时,打电话给服务器,当您第一次点击服务器时, w3wp 进程启动。
When you reset IIS or IIS is not running, you need to make a call to the server, when you hit the server for the first time the w3wp process starts.
这篇关于无法将调试器附加到w3wp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!