TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you get a grip on phantom errors?

3 点作者 jupiter超过 15 年前
Most of us already had it: you thought all errors in your app have finally been ironed out and then someone sends you an ugly screenshot showing an even more ugly error you cannot reproduce. He's not tech savvy enough to tell you details about his system config and cannot reliably reproduce the error himself. But the screenshot shows: it's out there. How do you get a grip on that?

3 条评论

psyklic超过 15 年前
I've had this happen many times on random users' systems. If the user is nice enough to work with you (and they were in my case since they were caught pre-deployment in contract work), you can often ask them to try new things with a dev build for instance.<p>The main key is to reproduce the errors on your system, so just try a bunch of wacky things like different screen resolutions, memory constraints, database configurations, etc. Continually look at the code and brainstorm what might cause that issue -- there are a limited number of code paths -- and try to cause the constraints in your code. It's definitely very specific to the individual situation.
jacquesm超过 15 年前
Without the screenshot and an idea of the applications state at that moment that's kind of hard to answer.<p>What you could do, is figure out the IP address of the user (that shouldn't be too hard), then go back into the log files and check all their actions one by one rebuilding the state up to the moment of the bugs occurrence.<p>Chances are that you'll be able to reproduce it that way, even if the user is clueless.<p>This little trick saved my ass a couple of times.
tallanvor超过 15 年前
Mark it as 'unable to reproduce' and don't worry too much about it until you get enough information to track down the cause. It sort of sucks, but if very few users are seeing the problem, sometimes it's not worth the effort unless you get a clear lead as to the cause of the problem.