Reputation: 2054
When debugging an Android application on Eclipse, after I choose 'Resume' (F8), the code stops randomly at some Android system classes which get opened in the code editor (although they lack the source code), like ZygoteInit or other classes.
Has anyone else experienced this? How can I fix this?
Upvotes: 4
Views: 416
Reputation: 8141
Why you don't use Log class to debug your code through LogCat.
http://developer.android.com/reference/android/util/Log.html
Upvotes: 0
Reputation: 362
This normally happens when your app crashes because of an Uncaught Exception. If you hit resume again it spit out the error to logcat. There might be settings in Eclipse to not auto open files with no source, or to not auto stop on exception, but I stopped using eclipse a while ago.
Upvotes: 1