db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "DebugPropertiesTmpl" by DyreTjeldvoll
Date Wed, 04 Jul 2007 12:48:06 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by DyreTjeldvoll:
http://wiki.apache.org/db-derby/DebugPropertiesTmpl

------------------------------------------------------------------------------
  #       END of Example properties file
  }}}
  
+ == Using the derby.debug.* properties for debugging ==
+ 
+ You can use the property derby.debug.true and derby.debug.false 
+ to turn on or off debug options. Both properties take a comma separated list 
+ of strings as argument. Each of the strings represents a debug option that is turned on
or off.
+ 
+ You can test for the presence of a debug option using !SanityManager.DEBUG_ON(String):
+ 
+ {{{
+ if (SanityManager.DEBUG_ON("MyFeature") { 
+   System.out.println("MyFeature is enabled");
+ } 
+ }}}
+ 
+ Printing will then be enabled if you start Derby with -Dderby.debug.true=!MyFeature
+ 

Mime
View raw message