Wednesday Nov 19, 2008

Debug tracing in JavaDB

JavaDB (a.k.a Apache Derby) has a lot tracepoints that could be very useful when debugging complex issues. The best part with them is that these tracepoints are logically grouped together. When enabled, traces related a particular logical section of the code can be obtained. e.g. If you are looking for information around Locks in the JavaDB system, then you could simply enable the LockTrace. The list of such logical components is really huge in the JavaDB system.

The simplest way to define these debug properties is to use the derby.properties file in the derby.system.home directory. To enable debug tracing for Locks and Cache systems in JavaDB, you could add following in the derby.properties file,

derby.debug.true=LockTrace,CacheTrace

Similarly, you can define 'derby.debug.false=XX' for disabling the debug trace for a particular set of components.

The complete list of debug properties can be found here. Try it, but only if you can handle the huge output that it generates most of the times.

About

user13377336

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Bookmarks
Blogroll

No bookmarks in folder