Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a breakpoint in Eclipse, causes Dalvik to crash

This is an interesting bug of Eclipse. I am using:

Version: Indigo Release
Build id: 20110615-0604

Out of nowhere today, I set a breakpoint in my android app on Eclipse. When it reaches the code, debug (dalvik JVM) aborts and crashes:

Tried to execute code in unprepared class (followed by the class name)

If I don't set the break point, it will run through with no problem. I have searched through Google but found nothing so far.

Another note, where I set this breakpoint does not matter, it could simply be the 1st line of onClick() function, or anywhere else. The moment the app "pauses" due to the breakpoint, it crashes.

like image 234
Li Tian Gong Avatar asked May 23 '12 14:05

Li Tian Gong


2 Answers

I run into the same issue; for me, the problem was solved by removing all of the watched expressions I had set up in the debugger (one of them was causing the problem).

like image 173
Michal Drewniak Avatar answered Oct 14 '22 13:10

Michal Drewniak


I run into the same issue when used watch expression with static method of this (unprepared) class. I solved this issue by removing this expression from expressions list.

like image 43
CeKup Avatar answered Oct 14 '22 14:10

CeKup