title: How to Debug JUnit tests similar to a regular Java program within Eclipse
body: <p>In eclipse, if I run a Java program in debug mode with no breakpoints, and if the JVM hits a NullPointerException, Eclipse will kindly highlight the offending line of code, and show the local variables, etc. Execution is paused. I can evaluate code using the Display tab, and so on.</p>
  
  <p>But, if I run a JUnit test in debug mode, and the jvm hits a NullPointerException, the jvm does not pause, and I don't have a chance to see the local variables. </p>
  
  <p>Is it possible to run JUnit tests so that the JVM will pause automatically when I hit a NullPointerException, without using breakpoints?</p>
  
  <p>Edit:
  Using JUnit 4 &amp; Juno</p>