2
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
4
<!--See the file LICENSE for redistribution information.-->
7
<title>Berkeley DB Reference Guide: Compile-time configuration</title>
8
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
12
<table width="100%"><tr valign=top>
13
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Debugging Applications</dl></h3></td>
14
<td align=right><a href="../../ref/debug/intro.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/debug/runtime.html"><img src="../../images/next.gif" alt="Next"></a>
17
<h1 align=center>Compile-time configuration</h1>
18
<p>There are three compile-time configuration options that assist in
19
debugging Berkeley DB and Berkeley DB applications:
21
<p><dt><a href="../../ref/build_unix/conf.html#--enable-debug">--enable-debug</a><dd>If you want to build Berkeley DB with <b>-g</b> as the C and C++ compiler
22
flag, enter --enable-debug as an argument to configure. This will create
23
Berkeley DB with debugging symbols, as well as load various Berkeley DB routines
24
that can be called directly from a debugger to display database page
25
content, cursor queues, and so forth. (Note that the <b>-O</b>
26
optimization flag will still be specified. To compile with only the
27
<b>-g</b>, explicitly set the <b>CFLAGS</b> environment variable
29
<p><dt><a href="../../ref/build_unix/conf.html#--enable-diagnostic">--enable-diagnostic</a><dd>If you want to build Berkeley DB with debugging run-time sanity checks and with
30
DIAGNOSTIC #defined during compilation, enter --enable-diagnostic as an
31
argument to configure. This will cause a number of special checks to be
32
performed when Berkeley DB is running. This flag should not be defined when
33
configuring to build production binaries because it degrades performance.
34
<p><dt><a href="../../ref/build_unix/conf.html#--enable-umrw">--enable-umrw</a><dd>When compiling Berkeley DB for use in run-time memory consistency checkers
35
(in particular, programs that look for reads and writes of uninitialized
36
memory), use --enable-umrw as an argument to configure. This
37
guarantees, among other things, that Berkeley DB will completely initialize
38
allocated pages rather than initializing only the minimum necessary
41
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/debug/intro.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/debug/runtime.html"><img src="../../images/next.gif" alt="Next"></a>
43
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>