I tried several months to make my debugger break my own code without success. Each uncaught exception is split into the ZygoteInit.run () method.
Here is a list of actions I have taken.
- Added
debug { debuggable true } to my build.gradle module file - Added manually by
debuggable="true" to my AndroidManifest.xml file Any exception checked in the breakpoints window- Added appropriate class filter templates to breakpoint
Any exception- this causes the debugger to completely skip all uncaught exceptions
I am debugging by looking at the stack trace in Logcat, which shows my classes in the stack trace.
I saw this version on the current and previous lines in the stable and canary channels.
Is something missing here?
EDIT: just for clarification to people, the problem was that I had a "Caught exception" checkbox. . The problem is fixed in this field.
Here is the relevant part of my Gradle file, if it helps at all.
android { compileSdkVersion 22 buildToolsVersion '22.0.0' defaultConfig { applicationId "com.--redacted--" minSdkVersion 15 targetSdkVersion 22 versionCode 30 versionName "0.0.30" multiDexEnabled true } packagingOptions { exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/beans.xml' } buildTypes { debug { debuggable true } release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } dexOptions { javaMaxHeapSize "4g" } }
Here is a screenshot of my Breakpoints window.

source share