如何调试无法在开发系统上重现的问题?
我最近完成了 Facebook 游戏的第一阶段:
它在我的开发系统上运行良好,但其他人在尝试运行它时报告错误和超时。有谁知道如果这些问题没有出现在我的系统上,我将如何调试这些问题?
谢谢。
I have recently finished phase 1 of my Facebook game:
It works fine on my dev system, but other people report errors and timeouts when they try to run it. Does anyone know how I would go about debugging these issues if they don't occur on my system?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
通常的途径是使用日志记录和错误消息来确定生产代码中发生错误的位置。然后在您的开发机器上查看它。
除此之外,还可以从遇到问题的人那里获取尽可能多的信息,以便您可以查明是否是特定客户端配置的问题。
The usual route is to use logging and error messages to pin down where the error is occuring in the code on production. Then look through it on your dev machine.
Added to this is getting as much info as you can from the people having problems, so that you can find out if it is a problem with particular client configurations.
您可以做一些事情
A few things you can do
一般来说,您需要在应用程序中设置陷阱来记录异常,以便在实际出现问题时可以进行检查。在出现特定的异常/错误之前,您将不知道要尝试重现什么。
Generally, you need to have traps in your application that record exceptions so that you have a trail to inspect when something goes wrong in the wild. You won't know what to try to repro until you have a specific exception/error.