[英]Diagnose issues in .NET code deployed to a production environment, C# .NET
I want to find out what methods or tools in general can be used diagnose issues in .NET code deployed to a production environment. 我想找出一般可以使用哪些方法或工具来诊断部署到生产环境的.NET代码中的问题。
Thanks! 谢谢!
Update 更新资料
The types of application on live: Web application, WCF application. 实时应用程序的类型:Web应用程序,WCF应用程序。
Depending on the type of issue I am looking at, I usually go down this list: 根据要查看的问题类型,通常会在以下列表中列出:
What kind of product your interested in? 您对哪种产品感兴趣? Desktop or Web?
桌面还是网络?
Anyway in any case you need log all unusual actions in any project. 无论如何,无论如何您都需要记录任何项目中的所有异常动作。
For web application I recomend to use ELMAH whitch can be accessed remotelly and you can review all error and information records in it. 对于Web应用程序,我建议您使用ELMAH whitch,可以远程访问它,并且您可以查看其中的所有错误和信息记录。 As data source here can be xml, db or plain text file.
作为数据源,这里可以是xml,db或纯文本文件。
For desktop applications you still need to log errors and it would be really helphul to post errors to the server via some kind of "Report Bug" form. 对于桌面应用程序,您仍然需要记录错误,并且通过某种“报告错误”表格将错误发布到服务器上确实是一个帮助。
As a general idea, an administrative console implemented into the application can be used to query its internal state. 通常,可将实现到应用程序中的管理控制台用于查询其内部状态。
This can be as simple as a status page in a web application that queries if the database server can be pinged, or as extensive as a transparent pull-down console that supports your custom DSL . 它可以像查询数据库服务器是否可以被ping通的Web应用程序中的状态页面一样简单,也可以像支持您的自定义DSL的透明下拉控制台一样广泛。 An example to the latter might be some games from which one can query or update the game's internal data (commands such as 'GET_OBJECT_PROPERTIES #objectId' or 'ADD_WEAPON_TO_PLAYER #playerNumber #weaponId', etc).
后者的示例可能是一些游戏,可以从中查询或更新游戏的内部数据(诸如“ GET_OBJECT_PROPERTIES #objectId”或“ ADD_WEAPON_TO_PLAYER #playerNumber #weaponId”之类的命令)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.