调试ASP.NET内置的Web服务器上突然停止 [英] Debugging ASP.NET on a built-in web server suddenly stops

查看:120
本文介绍了调试ASP.NET内置的Web服务器上突然停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Windows Server 2008(64位),VS 2008凭借其内置的Web服务器和ASP.NET MVC 1.0的web应用。

I have Windows Server 2008 (64-bit), VS 2008 with its built-in webserver and an ASP.NET MVC 1.0 webapp.

所有我想要做的是调试说应用程序。我有一大堆的断点,但他们在一个非常奇怪的方式行事。当我开始拳头与F5调试会话和命中断点,调试器停止就好了。然而,经过几F10s / F11s突然调试停止(当时没有例外),但既不VS来自浏览器的过程中分离,也不Web应用程序执行停止:Visual Studio中保持连接和Web请求继续正常执行

All I'm trying to do is to debug said app. I have a bunch of breakpoints, but they behave in a very strange way. When I fist start a debugging session with F5 and hit a breakpoint, the debugger stops just fine. However, after several F10s/F11s debugging suddenly "stops" (no exceptions at that time), but neither VS detaches from browsers' process, nor webapp execution stops: Visual Studio stays attached, and web request continues executing as usual.

我试过各种浏览器(Chrome浏览器,火狐,IE浏览器),但无济于事。

I tried various browsers (Chrome, Firefox, IE), but to no avail.

我该怎么做来解决这个?这真的使我疯了。

What do I do to solve this? It really drives me insane.

推荐答案

想通。有一个Web应用程序运行的后台线程,而且每当它发生在抛出一个异常,(这是没有被捕获),调试会话将停止。

Got it figured. There was a background thread running in a webapp, and it whenever it happened to throw an exception (which was not caught), debugging session would stop.

这篇关于调试ASP.NET内置的Web服务器上突然停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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