Hi,
In Eclipse, you can decide whether you want to suspend all thread or only
the current thread. I guess with other IDEs it's the same.
Possibly easier is to add the following line in your code, at the place
where you want to look at the database:
<your code>
org.h2.tools.Server.startWebServer(conn);
<your code>
This will start the web server and open a browser window that is connected
to the database. The current thread will continue once you disconnect from
the database in the browser. See also:
http://h2database.com/javadoc/org/h2/tools/Server.html#startWebServer_Connection
Regards,
Thomas
On Fri, Aug 16, 2013 at 7:36 AM, Christoph Läubrich
<[email protected]>wrote:
> Why do you assuming this? Of course it depends on your debugging tools,
> but most of them should only suspend the responsible Thread(s)
>
> Am 15.08.2013 21:12, schrieb Derek Price:
>
> Thanks, Thomas! That worked perfectly. I was able to connect to it via
>> SQL Workbench.
>>
>> The only issue I had was keeping the connection open for SQL Workbench to
>> connect to. I ended up just adding a Thread.sleep() where I wanted to debug
>> so I could query the database. If I set a breakpoint, it paused the VM (I'm
>> assuming) which paused access to H2, which is why I tried the sleep()
>> method. Is there a better way?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "H2 Database" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to
>> h2-database+unsubscribe@**googlegroups.com<h2-database%[email protected]>
>> .
>> To post to this group, send email to [email protected].
>> Visit this group at
>> http://groups.google.com/**group/h2-database<http://groups.google.com/group/h2-database>
>> .
>> For more options, visit
>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>> .
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> h2-database+unsubscribe@**googlegroups.com<h2-database%[email protected]>
> .
> To post to this group, send email to [email protected].
> Visit this group at
> http://groups.google.com/**group/h2-database<http://groups.google.com/group/h2-database>
> .
> For more options, visit
> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
> .
>
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.