Community
Participate
Working Groups
At the moment, using the debugger is a pain, since it always suspends the application, when a FileNotFoundException will be thrown (which is occurs very frequently, if resources are involved - like in TimeZone.getTimzone(id) or several DateFormatters etc). The strange thing is: there is no breakpoint enabled for this exception, i.e. the Breakpoint View does not contain any breakpoints! I even used the "remove all breakpoint" button, to be sure, that there is no breakpoint enabled. So this bug gets driving me crazy! E.g. which shows this behavior: public static void main(String[] args) throws Exception { String[] tz = TimeZone.getAvailableIDs(); Arrays.sort(tz); for (int i=0; i < tz.length; i++) { int raw = TimeZone.getTimeZone(tz[i]).getRawOffset(); System.out.println(tz[i] + " = " + raw/60000); } } Just running it as debug without setting a breakpoint will suspend the main thread several times!
There are preferences to suspend on uncaught exceptions. See "Java > Debug" preference page. Also see a bug asking to make these preferences into more visible breakpoint settings - bug *** This bug has been marked as a duplicate of 44894 ***