Is there “Break on Exception” in IntelliJ?

后端 未结 6 1391
爱一瞬间的悲伤
爱一瞬间的悲伤 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:29

    If you click on the little "+" sign in the upper left corner, you can add a new breakpoint. If you select Exception Breakpoint, you get a little dialog where you can enter the exception class to break on (in case you don't want to break on all exceptions).

提交回复
热议问题