Pavel Ryzhov
Pavel Ryzhov

Reputation: 5142

JUnit test debuging hangs in IntelliJ IDEA

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:

What to do to debug the code?

Upvotes: 3

Views: 5111

Answers (3)

Igor Kanshyn
Igor Kanshyn

Reputation: 912

Try to remove all breakpoints and restart your Debug. Press Command+Shift+F8, then Command+A and press Del. This if for Mac.

Upvotes: 2

mrembisz
mrembisz

Reputation: 12880

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.

Upvotes: 10

Makoto
Makoto

Reputation: 106390

It could easily be that you need to supply the test with more PermGen space.

Try using this in your configurations for that test:

-XX:MaxPermSize=300m 

If your tests aren't insanely huge (and they shouldn't be), this should be more than enough.

Upvotes: 0

Related Questions