4

Eclipse is not suspending on an uncaught runtime exception during debugging of a Junit test. I've tried:

  • JRE 1.6 update 15 and 16
  • Eclipse 3.5.0 and Eclipse 3.4.2
  • Checked "Suspend on uncaught exception" for the exception and all runtime exceptions
  • Checked "Keep JUnit running after a test run when debugging"
  • Debugging when running only the test method, and the entire test class
  • Suggestions here and here

All to no avail.

Debugging without the testrunner (ie: via a class with its own main method) works, ie: eclipse suspends on the line where the exception occurs.

Community
  • 1
  • 1
tekumara
  • 8,357
  • 10
  • 57
  • 69

1 Answers1

1

Did you try adding -consolelog to your eclipse.ini file and check what your JUnit session produce there?
In this thread, the OP realized his xml file was referring to the wrong testing class.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250