title: H2 server suspends while debugging
body: <p>I have a Spring application that starts the following in memory H2 database for JUnit tests:</p>
  
  <pre><code>db.jdbc.driver=org.h2.Driver
  db.jdbc.url=jdbc:h2:mem:sampledb
  db.jdbc.username=
  db.jdbc.password=
  hibernate.dialect=org.hibernate.dialect.H2Dialect
  </code></pre>
  
  <p>I would like to easily debug when my JUnit tests are running and meantime browse database state, so before test suite I start H2 Server:</p>
  
  <pre><code>org.h2.tools.Server.createTcpServer("-tcpPort", "9092", "-tcpAllowOthers").start();
  </code></pre>
  
  <p>Unfortunately when I put any breakpoint that suspends all threads it also suspends H2 server thread, so I am not able to connect. I cannot start H2 server in different process because in memory database is not accessible from outside VM. </p>
  
  <p>I understand that I can use other type of breakpoint (that suspends only current thread) but it's a kind of limitation. Have you found other solutions for such problem?</p>