not sure if it works for Android, but for Java SE you can configure step filtering in the settings to avoid switching to any package / class:
Window -> Preferences -> Java -> Debug -> Step Filtering
Check "Use step filters", add packages and classes to ignore, check "Step filters".

In the end, you need to disable "Pause execution on uncaught exceptions" to avoid stopping the debugger in case of an exception:
Window -> Preferences -> Java -> Debug
Carlos Heuberger
source share