one of the reasons you cannot set a breakpoint is because the sdk class for Android does not contain component information.
you can use the Java Decompiler to open the / (sdk path) /platforms/android-xx/android.jar file to see the sdk class detail and you will find that the tools of all the methods look like this:
public int getVerticalScrollbarWidth() { throw new RuntimeException("Stub!"); }
and does not contain private methods. therefore, the eclipse java debugger does not know how to set a breakpoint, because the connection source does not exactly match the sdk class.
I have a not-so-good way to handle this problem. 1. copy the source file (e.g. / android / view / View.java) to any android / java project in eclipse. 2. set a breakpoint in the file in step 1. Now you can get to the breakpoint.
source share