如何调试无法在开发系统上重现的问题?

发布于 2024-08-10 06:00:14 字数 231 浏览 2 评论 0原文

我最近完成了 Facebook 游戏的第一阶段:

Rails Across Europe

它在我的开发系统上运行良好,但其他人在尝试运行它时报告错误和超时。有谁知道如果这些问题没有出现在我的系统上,我将如何调试这些问题?

谢谢。

I have recently finished phase 1 of my Facebook game:

Rails Across Europe

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

泛泛之交 2024-08-17 06:00:14

通常的途径是使用日志记录和错误消息来确定生产代码中发生错误的位置。然后在您的开发机器上查看它。

除此之外,还可以从遇到问题的人那里获取尽可能多的信息,以便您可以查明是否是特定客户端配置的问题。

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.

送舟行 2024-08-17 06:00:14

您可以做一些事情

  • 在似乎与问题相关的区域中引入额外的日志记录
  • 经常玩游戏本身;-) 从用户使用的类似环境中直接体验这些问题
  • 收集有关错误报告的信息(尝试看看它们是否有一些共同点,例如相同的浏览器、相同的操作系统、一天中的相同时间......)

A few things you can do

  • Introduce additional logging in the area that appear to related to the issue
  • Play the game itself, a lot ;-) from similar environments the users use in order to experience these issues first hand
  • Collect info about the bug reports (try and see if they have some commonality such as same browser, same OS, same time of day...)
萌酱 2024-08-17 06:00:14

一般来说,您需要在应用程序中设置陷阱来记录异常,以便在实际出现问题时可以进行检查。在出现特定的异常/错误之前,您将不知道要尝试重现什么。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文