Is there “Break on Exception” in IntelliJ?

后端 未结 6 1407
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 08:23

Is there feature that will automatically break debugging on first exception occurrence?

So we

  1. start application
  2. do something that throw excep
6条回答
  •  再見小時候
    2020-12-07 08:37

    In IntelliJ IDEA 14 go to:

    Run -> View Breakpoints -> Check "Java Exceptions Breakpoints" -> Uncheck "Caught Exceptions"

    If you do not uncheck Caught Exceptions the execution will be stopped every time the Java Framework throws an internal exception.

提交回复
热议问题