Android Studio IDE: Break on Exception

后端 未结 3 772
-上瘾入骨i
-上瘾入骨i 2020-11-29 16:50

It seems my Android Studio does not want to break on any exception by default. Enabling break on \"Any Exception\" starts breaking within actual JDE libraries. Is there any

3条回答
  •  旧时难觅i
    2020-11-29 17:47

    If you open up the Breakpoints window, it gives you quite a few options to have it conditionally break or not. What you're looking for is the "Class filters" here -- you can specify a wildcard expression with, for example, a Java package path, and it will only break for exceptions generated from matching classes.

提交回复
热议问题