What worked for me follows the answer found in the Android Murach software. I was stuck trying to debug and tried to work for about 3 hours before moving on to the next page (literally), where he said: "Sometimes Eclipse will display a message not found by the source because ..." (-headdesk -)
My solution was to enable step filtering and add packages that I wanted to skip during debugging. Obviously, Eclipse sometimes goes through all the source code libraries when all you need to do is go through your code. You can work around this by adding packages that you want to skip to the filter. According to Murakh, you simply do this through trial and error, starting with selecting all the packages and adding them. As you continue debugging, you may find that you need to add more packets to the filter.
Specific steps: 1. Enable step filtering; click the button on the toolbar at the top, which looks like this: http://i57.tinypic.com/x3iccp.png 2. Go to the → Settings window, then in the “Settings” dialog box select “Java” → “Debugging” → “Filtering by steps "3. Select all packages. 4. To add additional filters, click "Add Filter", enter the package name with. * At the end, and click "OK." Murach recommends adding these general packages to get started: --android. * --com.android. * --com.google. * --dalvik. * --libcore. * --org.apache. * To add one of these packages, click "Add Filter", enter "android. *" And click "OK." In my Step Filter settings, I had all of the following packages.
android., android.app., com.android., com.google., com.ibm., com.sun., dalvik., java., javax., jrockit., libcore., org.apache., org. omg., sun., sunw. *, ((and this last one is a class, not a package)) java.lang.ClassLoader
I had "Use Step Filters" that were marked at the top of the dialog box, and "Step through filters" checked below. Click Apply, then OK to close the dialog box. It should work.
Good luck
Kate Jun 09 '14 at 19:27 2014-06-09 19:27
source share