views:

310

answers:

2

Hi,

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

So we

  1. start application
  2. do something that throw exception
  3. got IntelliJ popped up highlighted line where exception occurred.
+3  A: 

Run | View Breakpoints | Exception Breakpoints By http://twitter.com/intelliyole

Mike Chaliy
+1  A: 

Yes, there is. You need to define an exception breakpoint (it can be "Any exception") in the breakpoints dialog in IntelliJ IDEA.

The exceptions can be filtered by condition or class if desired, or by whether you are interested in caught or uncaught exceptions.

Avi