title: How do I properly set an exception breakpoint in Android Studio?
body: <p>I have been trying for months to get my debugger to break on my own code, with no success. Every uncaught exception breaks in the ZygoteInit.run() method.</p>
  
  <p>Here is a list of actions I've taken.</p>
  
  <ol>
  <li>Added <code>debug { debuggable true }</code> to my app module's build.gradle file</li>
  <li>Manually added <code>debuggable="true"</code> to my AndroidManifest.xml file</li>
  <li>Checked the <code>Any exception</code> checkbox in the Breakpoints window</li>
  <li>Added relevant class filter patterns to the <code>Any exception</code> breakpoint
  
  <ul>
  <li>this causes the debugger to completely skip all uncaught exceptions</li>
  </ul></li>
  </ol>
  
  <p>I have been debugging by looking at the stack trace in Logcat, which does show my classes in the stack trace.</p>
  
  <p>I have seen this version on current &amp; previous builds in the stable AND canary channels.</p>
  
  <p>Is there something here I'm missing?</p>
  
  <p>EDIT: Just to clarify for people, the issue was that <strong>I had the "Caught exception" box unchecked.</strong> Checking this box fixed my issue.</p>
  
  <p>Here is the relevant part of my Gradle file, if it helps at all.</p>
  
  <pre><code>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"
      }
  }
  </code></pre>
  
  <p>Here is a screenshot of my Breakpoints window.</p>
  
  <p><img src="https://i.stack.imgur.com/JRuTi.png" alt="Breakpoints window"></p>