2
我开发并发布了Windows通用应用程序。为了跟踪异常和应用使用我启用应用见解,我可以找到FileNotFoundException异常的存在与以下调用堆栈:Windows 10通用应用程序(UAP)中的FileNotFoundException
at Mindapp!<BaseAddress>+0x6e58d1
at Mindapp!<BaseAddress>+0x6ee2a4
at Mindapp!<BaseAddress>+0x86bd63
--- End of stack trace from previous location where exception was thrown ---
at Mindapp!<BaseAddress>+0x6e58d1
at Mindapp!<BaseAddress>+0x6ee2a4
at Mindapp!<BaseAddress>+0x86d250
--- End of stack trace from previous location where exception was thrown ---
at Mindapp!<BaseAddress>+0x6e58d1
at Mindapp!<BaseAddress>+0x6ee2a4
at Mindapp!<BaseAddress>+0x880c5e
--- End of stack trace from previous location where exception was thrown ---
at Mindapp!<BaseAddress>+0x6e58d1
at Mindapp!<BaseAddress>+0x6ee2a4
at Mindapp!<BaseAddress>+0x8b3663
--- End of stack trace from previous location where exception was thrown ---
at Mindapp!<BaseAddress>+0x6e58d1
at Mindapp!<BaseAddress>+0x6ee2a4
at Mindapp!<BaseAddress>+0x883601
--- End of stack trace from previous location where exception was thrown ---
at Mindapp!<BaseAddress>+0x6e58d1
at Mindapp!<BaseAddress>+0x6ee17e
at Mindapp!<BaseAddress>+0x7d6276
不幸的是,我没有更多的信息。有没有一种方法可以获得关于这个异常的更多细节?
我一直都在使用AI,所以最关键的是要确保从一开始就编写好的代码,例如,你的代码应该被封装在try/catch块中。然后你可以自己创建一个异常并发送给AI,这样你就可以控制发生了什么,在哪里,用户信息等,但是你也在处理这个错误。这看起来对我来说像一个未处理的异常,编译代码 – davethecoder
我的应用程序就像一个图编辑器,我不明白每一个操作。这就是为什么有全局异常处理程序的原因,不是吗? – SebastianStehle
我会假设,filenotfound异常将来自于一段代码,它说明与打开一个文件有关,我的猜测是,这是一个函数/方法。该代码应该被包装,你基本上冒出了你的错误,远离创建它的方法,并最终废话,因为它没有处理。我的应用程序是为XXX不是没有处理错误的借口,特别是当你想对错误进行分析时 – davethecoder