Flurry WP7 在附加调试器的情况下运行/在没有附加调试器的情况下崩溃
我正在开发 Windows Phone 7 应用程序,并使用 Flurry 为该应用程序提供分析。
我的问题很简单:当我运行带有附加调试器的应用程序时(无论是在“发布”还是“调试”模式),它工作正常。当我在没有附加调试器的情况下运行它时,它崩溃了。它甚至没有到达应用程序的第一个屏幕。它只显示启动屏幕,然后退出。
I'm working on a Windows Phone 7 application and I'm using Flurry to provide analytics for the app.
My problem is simple: When I'm running the app with the debugger attached (either in "Release" or in "Debug" mode), it works fine. When I run it without the debugger attached, it crashes. It doesn't even get to the first screen of the app. It just shows the splash screen and then exits.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这种情况下,根据代码量,我要么尝试使用减半方法从后到前注释掉代码,直到找到崩溃的地方,要么尝试从前到后有条不紊地调用 MessageBox.Show。
重要的是要有系统性。我以前遇到过这类不可调试的异常,这可能令人沮丧。您需要转变心态,从期望自己确切地知道代码在做什么(就像工程师那样)到探索和假设(就像医生那样)。
In this circumstance, depending on the amount of code, I would either try commenting out code back to front using the halving method until you find the place where it is crashing or I would try calling MessageBox.Show going methodically from front to back.
The important thing is to be systematic. I've gotten these kinds of un-debuggable exceptions before and it can be disheartening. You kind of need to shift mindsets from expecting you will know exactly what your code is doing (like an engineer would) to probing and hypothesizing (as a doctor might).