![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/ba1462b72f66b0db8f986d305e8367a0.jpeg)
1.概述
除了阅读源码,一定是遇到了异常我们才开始调试代码,代码在抛出异常之后会自动停止,但是我们希望:
代码停在抛出异常之前,方便我们查看当时的变量信息
这时我们就用到了 Exception Breakpoints, 当抛出异常时,在 catch 的地方打上断点,可以通过下图的几个位置获取栈顶异常类型,比如这里的 ArithmeticException
public class ExceptionAtBreakpoints {
public static void main(String[] args