简体   繁体   English

调试已发布的站点asp.net Webforms网站

[英]debugging a published site asp.net webforms website

Today our asp.net web site (not web application) errored on our production server. 今天,我们的asp.net网站(而非Web应用程序)在生产服务器上出错。 Luckily the latest source code fixed the issue. 幸运的是,最新的源代码解决了该问题。 When we do a release, our senior dev forces us to put in a release mode and turn off debug in the web.config (due to security audits for PCI compliance). 发布时,我们的高级开发人员强迫我们进入发布模式,并在web.config中关闭调试(由于对PCI合规性进行了安全审核)。 Is there a way you debug the website remotely from our office when it's been published in release mode? 以发布模式发布网站后,您是否可以从我们的办公室远程调试网站?

you might be better off using some sort of logging or error handler, like ELMAH. 您最好使用某种日志记录或错误处理程序,例如ELMAH。 Don't think you can debug a release mode dlls, as it doesn't include the pdb files. 不要以为您可以调试发布模式的dll,因为它不包含pdb文件。 Plus debugging a production site would lock the IIS worker process, so if you hit a breakpoint other users hitting the site would just get stuck waiting for you to release the breakpoint. 加上调试生产站点将锁定IIS工作进程,因此,如果您遇到断点,则击中该站点的其他用户将被困在等待您释放断点的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM