[英]How can I enable detailed errors in IIS Express from within Visual Studio 2015
Using VS 2015 and Firefox browser. 使用VS 2015和Firefox浏览器。 When my code runs into an error I see it in the Output window, but would prefer seeing it in the browser.
当我的代码遇到错误时,我会在“输出”窗口中看到它,但希望在浏览器中看到它。 Right now all I get is a 500 error with no stack.
现在,我得到的只是一个没有堆栈的500错误。
Thanks! 谢谢!
You'll want to look into the <customErrors />
of your web.config
(example below): 您需要查看一下
web.config
的<customErrors />
(下面的示例):
<configuration>
<system.web>
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly">
<error statusCode="500"
redirect="InternalError.htm"/>
</customErrors>
</system.web>
</configuration>
See also this previous SO answer: CustomErrors mode="Off" 另请参见此先前的SO答案: CustomErrors mode =“ Off”
Source: https://msdn.microsoft.com/en-us/library/h0hfz6fc(v=vs.71).aspx 来源: https : //msdn.microsoft.com/en-us/library/h0hfz6fc(v=vs.71).aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.