• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why doesn't Netbeans debugger stop on runtime exceptions?

 
Ranch Hand
Posts: 441
Scala IntelliJ IDE Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I enable Tools > Options > Miscellaneous > Java Debugger > Stop on uncaught exceptions, I would expect Netbeans to stop on an uncaught exception, but it doesn't.

e.g.

throws an ArithmeticException but the debugger does not stop. Or
throws an ArrayIndexOutOfBounds error, but again the debugger doesn't stop, so I can't see the variable values at the point of the exception.

Does anyone have any idea why this might be and how I can fix it?

I tried the same examples in Eclipse and the debugger there stopped as expected, so I might have to switch IDEs if I can't work this out.
 
So I left, I came home, and I ate some pie. And then I read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic