我使用marmalade sdk和AppEasy引擎制作游戏,当我在设备上测试时它可以工作但是在提交到商店和下载后它只显示启动画面然后终止。 有没有办法调试它? Android和ios都有跟踪控制台输出的工具,wp8有这样的工具吗?我只找到了如何在本地部署到设备的应用程序,但无法调试下载的应用程序:(
对于我在同一框架中制作的其他游戏(同样的问题),开发中心仪表板上有一个崩溃报告,错误说“STACK_OVERFLOW_DATA”,但这没有多大帮助
也尝试了这个(在其他一些问题中找到的解决方案):
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
{
if (System.Diagnostics.Debugger.IsAttached)
{
// An unhandled exception has occurred; break into the debugger
System.Diagnostics.Debugger.Break();
}
string result = "nothing :(";
IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication();
if (store.FileExists("iwtrace.txt"))
{
using (var stream = new IsolatedStorageFileStream("iwtrace.txt", FileMode.Open, store))
{
using (var fileReader = new StreamReader(stream))
{
result = fileReader.ReadToEnd();
}
}
}
EmailComposeTask task = new EmailComposeTask();
task.To = "";
task.Subject = "crash log " + e.ExceptionObject.Message;
task.Body = result;
task.Show();
}
但它永远不会显示电子邮件表单
答案 0 :(得分:0)
还没有办法调试WP8应用程序的零售版本,特别是在Marmalade中制作的。 您可以在解释how to test the retail version的文章中详细了解相关内容。
根据文章,您需要在Native C#app的情况下通过Visual Studio测试零售版本。我想即使从商店下载后也无法调试本机XAML应用程序。
我去年在Marmalade论坛上问了almost similar question。当时唯一的方法是使用Windows Power工具或Visual Studio。
要测试该功能,请在发布模式下从Visual Studio运行代码,看它是否崩溃。就我所知,这是你在这种情况下唯一可以做的事情。