开发者

help debugging thread (AsyncTask) RuntimeException cause in Android/Eclipse

开发者 https://www.devze.com 2023-03-21 13:30 出处:网络
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 t

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:

Thr开发者_JAVA百科ead.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.


I do not see anything about an exception in my LogCat either.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消