有没有办法让executionTimeout在调试时生效?
我想调试网站,但也导致 httpRuntimeexecutionTimeout< /code>
设置生效。然而,文档说:
此超时仅适用于 编译中的 debug 属性 元素为 False。
有什么方法可以在 debug="True"
时启用 executionTimeout
吗?
I would like to debug a website, but also cause the httpRuntime executionTimeout
setting to take effect. However, the documentation says:
This time-out applies only if the
debug attribute in the compilation
element is False.
Is there any way to enable executionTimeout
when debug="True"
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
经过一个多星期的搜索和尝试各种技巧后,我可以自信地说,到目前为止,还没有合理的方法可以让
httpRuntimeexecutionTimeout
设置在编译时生效debug
标志设置为 true。一种可能可怕的黑客解决方法是以某种方式欺骗系统,使其认为已经过去了超过 30,000,000 秒(刚刚超过 347 天),这就是
debug
时executionTimeout
被覆盖的内容是真的。After more than a week of searching and trying various hacks, I'm confident in saying that, as of now, there is no reasonable way to have the
httpRuntime executionTimeout
setting take effect while thecompilation debug
flag is set to true.One possible terrible hack workaround is to somehow trick the system into thinking that more than 30,000,000 seconds (just over 347 days) have elapsed, which is what
executionTimeout
is overridden to whendebug
is true.如果您使用 ASP.NET MVC,则 这可能会有所帮助。
ASP.NET MVC(版本<4)不支持此超时。
If you use ASP.NET MVC then this may help.
ASP.NET MVC (version < 4) doesn't support this timeout.
这很有趣,因为当我坐在那里查看代码时,调试会话总是超时。是否有另一个由 IIS 而不是 ASP.NET 处理的超时值?
That's interesting, because I have debugging sessions timeout on me all the time when I'm just sitting there looking at the code. Is there another timeout value that is handled by IIS rather than ASP.NET?