Tag Archives: debug

Open H2 UI When Debugging in Eclipse

This time it is about debugging the H2 embedded database, which is very similar to procedure used with the HSQLDB I posted earlier. Assuming that the hibernate.connection.url is set to jdbc:h2:mem:myDb, you can following similar steps as in my previous … Continue reading

Posted in Database, Java, Tool and Debug | Tagged , , , , | Leave a comment

Query the In-memory HSQLDB When Integrated With Hibernate

HSQLDB in-memory database is often used with Hibernate for testing, prototyping and even in production environment. With Hibernate, you can perform powerful database operations either using the ORM based APIs, HSQL or native SQL. As a developer, sometimes you want … Continue reading

Posted in Database, Java, Programming, Tool and Debug | Tagged , , , | 1 Comment

Eclipse Force Return at Debug Time

If you ever want to force Eclipse debugger to return prematurely, you can follow the three simple steps as shown in the attached screenshot.   Step#1: Put a breakpoint at where you want the premature return to happen, start to … Continue reading

Posted in Tool and Debug | Tagged , , | Leave a comment

Eclipse Debug ProGuard Obfuscated Code

Debugging ProGuard obfuscated code in Eclipse can be tricky, which is especially true given the Eclipse Market lacking (at least unaware ) of any usable ProGuard debug plugins. Although we can try our best to write high quality code, but … Continue reading

Posted in Java, Programming, Tool and Debug | Tagged , , , , | Leave a comment

Which Java Thread Is Hogging CPU

Recently I needed to investigate a CPU overload problem on an embedded system, which ran Oracle EJRE with limited processor power and memory. At the problem time, the Java process took more than 80% of the CPU time. A java … Continue reading

Posted in Java, Tool and Debug | Tagged , , | 1 Comment