When debugging JAVA 1.8 in Eclipse, if I encounter a bug in my code, I want Eclipse to break on the Exception.
Now I've added Exception to the breakpoints in Eclipse per all the normal instructions, but now when I run my program, so many exceptions are raised by frameworks just on startup that continuing past every exception is impossible.
I've worked around this so far by:
- Disable catch-all breakpoint on Exception
- Adding a single breakpoint on the first line of code in my program
- Run Program
- Enable breakpoint on Exception
- Continue Program
Now this has worked for skipping past the deluge of startup exceptions, but I'm now hitting the problem in other places as my program grows in size and complexity, so I have to wonder if I'm doing something fundamentally wrong.
Can I just break on errors in MY code somehow?