调试asp.net突然停止 [英] Debugging asp.net suddenly stops

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

问题描述

我有一个奇怪的错误。我调试一个asp.net网站突然停止。 Visual Studio的停留在调试模式下,我的web应用程序停留在运行就好了。我发现张贴,但我不认为一个后台线程导致了问题。甚至还有周围的地方通常会停止调试代码中的一个尝试捕捉,但渔获不会触发......每次我尝试它,它停在代码中的一个不同的地方。

I have a strange error. I'm debugging an asp.net site and suddenly it stops. Visual Studio stays in debug mode and my web application stays on running just fine. I found this post on, but I don't think a background thread is causing the problem. There's even a try catch around the code where it usually stops debugging, but the catch is not triggered... Everytime I try it, it stops at a different place in the code.

推荐答案

已经设置您的调试器在所有异常,不只是未处理的异常

Have you set your debugger to break on all exceptions, not just unhandled exceptions?

调试中断 - >例外 - >检查时抛出框的一切(或至少只是通用语言运行时例外)。如果有异常调试过程中引发的,在任何线程,这一点应引起调试器突出和对运动员打破。

Debug -> Exceptions -> Check the "Thrown" box for everything (or at least just Common Language Runtime Exceptions). If an exception is thrown during debugging, on any thread, this should cause the debugger to highlight and break on the "thrower".

要尝试的另一件事,是重置所有的IDE设置。我有各种奇怪的行为在这里设置被损坏之前和IDE不再表现理智:工具 - >导入和导出设置 - >重置所有设置

Another thing to try, is to reset all your IDE settings. I've had various odd behaviours before where settings got corrupted and the IDE stopped behaving sensibly: Tools -> Import and Export Settings -> Reset All Settings.

在除。丹尼尔·戴森的答案 - 如果你暂停,因为他暗示(一旦调试已经停止),打开新语丝调试窗口。是否有显示,在位置栏的条目任何线程。如果是这样,这可能是你的代码执行。点击每个反过来。你能解释什么每个线程在做什么,或者这也揭示出这个奇怪的行为任何光线?

In addition to Daniel Dyson's answer - if you "pause" as he suggests (once the debugging has "stopped"), open the "Threads" debug window. Are there any threads showing that have an entry in the "location column". If so, this is probably your code executing. Click on each in turn. Can you account for what each thread is doing, or does this shed any light on this odd behaviour?

这篇关于调试asp.net突然停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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