You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by Apache Wiki <wi...@apache.org> on 2007/07/04 14:48:06 UTC
[Db-derby Wiki] Update of "DebugPropertiesTmpl" by DyreTjeldvoll
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
+