Is there any easy to follow tutorial for debugging Java / J2EE applications in eclipse? A step by step guide on how to check for unchecked and checked exceptions? I have been tr
The debugger in Eclipse will automatically suspend execution (and let you inspect variables/step/resume etc) if an uncaught exception is thrown.
Enter for instance the following program...
public class Test {
public void methodA() {
methodB("hello");
methodB(null);
}
public void methodB(String s) {
System.out.println(s.substring(2));
}
public static void main(String[] args) {
new Test().methodA();
}
}
... and click the little "bug"-icon or choose Run -> Debug As -> Java Application