JUnit test debuging hangs in IntelliJ IDEA
hibernate, intellij-idea, java, junit, spring
Solution
Make sure you did not place a breakpoint on method signature instead of line of regular code. You can recognize such breakpoint also by 4 black dots inside red circle. They slow down debugging dramatically.
Problem
During debugging the test code it hangs on the initialization phase. The latest message at the log is (before the debugging hangs): `2013-03-15 13:03:09:215 INFO [ : ] [main:o.h.d.Dialect] Using dialect: my.company.package.util.hibernate.HSQLDialect` Please consider the following factors which seems to impact the debugging: - Test runs with `@RunWith(SpringJUnit4ClassRunner.class)` - Test run on IntelliJ IDEA 12.0.4 - When tests run without debugging they works without any problems What to do to debug the code?