有没有办法让executionTimeout在调试时生效?

发布于 2024-08-20 10:32:58 字数 347 浏览 3 评论 0原文

我想调试网站,但也导致 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

心的位置 2024-08-27 10:32:58

经过一个多星期的搜索和尝试各种技巧后,我可以自信地说,到目前为止,还没有合理的方法可以让 httpRuntimeexecutionTimeout 设置在 编译时生效debug 标志设置为 true。

一种可能可怕的黑客解决方法是以某种方式欺骗系统,使其认为已经过去了超过 30,000,000 秒(刚刚超过 347 天),这就是 debugexecutionTimeout 被覆盖的内容是真的。

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 the compilation 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 when debug is true.

零度℉ 2024-08-27 10:32:58

如果您使用 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.

浊酒尽余欢 2024-08-27 10:32:58

这很有趣,因为当我坐在那里查看代码时,调试会话总是超时。是否有另一个由 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文