I would like to connect to an in-memory HSQL database instance using the hsql DatabaseManager (or the swing version, it doesn't matter) while debugging tests in my IDE (Intellij IDEA 11.1.2).
I have tried as was suggested by this answer, but every time I do so the DatabaseManager process/thread (I don't know which) starts and freezes. If kill/force quit it, the debug session also dies.
How can I do this without the DatabaseManager freezing?
Your Spring/JUnit is starting the database in in-process mode.
Your options would be:
I think there are two answers to this question.
Please also check if your breakpoint halts all threads. Most debuggers have a setting for this. You can change this setting for this breakpoint to only halt the JUnit test. See also here:
Does a breakpoint halt all threads?