help debugging thread (AsyncTask) RuntimeException cause in Android/Eclipse
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.
精彩评论