我已经在debug=false
中设置了Web.config
用于生产,但是我想在日志中查看异常行号,所以我必须执行以下操作:
Optimize code
Exclude generated debug symbols
Pdb-only
我的问题是,这样做会导致我失去一些表现吗?是否建议在生产环境中这样做?
答案 0 :(得分:0)
Important
Debug mode greatly reduces the performance of your app. For best performance, set debug="false" in the web.config and specify a Release build when you deploy a production app or conduct performance measurements.