帮助调试 Android/Eclipse 中线程 (AsyncTask) RuntimeException 原因
我有几个 AsyncTask 工作线程,在运行时,其中一个在 Eclipse 中显示为“异常 RuntimeException”。我无法找出异常的原因,甚至无法找出正在运行的线程/代码。
我所看到的只是线程 11,AsyncTask #2。下面写着:
Thread.run() line: 1096
ThreadPoolExecutor$Worker.run() line: 561
ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) line: 1086
没有一个提示我提示是什么代码导致了异常。我检查了变量,但我也没有看到任何提示。我在 LogCat 中也没有看到任何有关异常的信息。
I have several AsyncTask worker threads, and during runtime one of them shows up in Eclipse as "exception RuntimeException." I am having trouble finding out the cause of the exception, or even what thread/code was running.
All I see is Thread 11, AsyncTask #2. Beneath, it says:
Thread.run() line: 1096
ThreadPoolExecutor$Worker.run() line: 561
ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) line: 1086
none of which give me hints what code caused the exception. I inspected the variables, but I also do not see any hints of this. I do not see anything about an exception in my LogCat either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
程序可能会自行暂停,并且您无法使用 Eclipse 调试器恢复它。只有在此之后,异常才会显示在控制台中。
Chances are the program pauses itself and you are not resuming it with the Eclipse debugger. Only after that will the Exception be show in the console.