Debian Codegraph @

docs/installation/debug.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>Chapter 3.  Debugging Applications</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" />
10 <link rel="up" href="index.html" title="Berkeley DB Installation and Build Guide" />
11 <link rel="prev" href="install_multiple.html" title="Building with multiple versions of Berkeley DB" />
12 <link rel="next" href="debug_compile.html" title="Compile-time configuration" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">Chapter 3. 
22 Debugging Applications
23 </th>
24 </tr>
25 <tr>
26 <td width="20%" align="left"><a accesskey="p" href="install_multiple.html">Prev</a> </td>
27 <th width="60%" align="center"> </th>
28 <td width="20%" align="right"> <a accesskey="n" href="debug_compile.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="chapter" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title"><a id="debug"></a>Chapter 3. 
38 Debugging Applications
39 </h2>
40 </div>
41 </div>
42 </div>
43 <div class="toc">
44 <p>
45 <b>Table of Contents</b>
46 </p>
47 <dl>
48 <dt>
49 <span class="sect1">
50 <a href="debug.html#debug_intro">Introduction to debugging</a>
51 </span>
52 </dt>
53 <dt>
54 <span class="sect1">
55 <a href="debug_compile.html">Compile-time configuration</a>
56 </span>
57 </dt>
58 <dt>
59 <span class="sect1">
60 <a href="debug_runtime.html">Run-time error information</a>
61 </span>
62 </dt>
63 <dt>
64 <span class="sect1">
65 <a href="debug_printlog.html">Reviewing Berkeley DB log files</a>
66 </span>
67 </dt>
68 <dd>
69 <dl>
70 <dt>
71 <span class="sect2">
72 <a href="debug_printlog.html#idp121880">Augmenting the Log for Debugging</a>
73 </span>
74 </dt>
75 <dt>
76 <span class="sect2">
77 <a href="debug_printlog.html#idp53840">Extracting Committed Transactions and Transaction Status</a>
78 </span>
79 </dt>
80 <dt>
81 <span class="sect2">
82 <a href="debug_printlog.html#idp41744">Extracting Transaction Histories</a>
83 </span>
84 </dt>
85 <dt>
86 <span class="sect2">
87 <a href="debug_printlog.html#idp154152">Extracting File Histories</a>
88 </span>
89 </dt>
90 <dt>
91 <span class="sect2">
92 <a href="debug_printlog.html#idp158032">Extracting Page Histories</a>
93 </span>
94 </dt>
95 <dt>
96 <span class="sect2">
97 <a href="debug_printlog.html#idp124648">Other log processing tools</a>
98 </span>
99 </dt>
100 </dl>
101 </dd>
102 </dl>
103 </div>
104 <div class="sect1" lang="en" xml:lang="en">
105 <div class="titlepage">
106 <div>
107 <div>
108 <h2 class="title" style="clear: both"><a id="debug_intro"></a>Introduction to debugging</h2>
109 </div>
110 </div>
111 </div>
112 <p>
113 Because Berkeley DB is an embedded library, debugging applications that
114 use Berkeley DB is both harder and easier than debugging a separate
115 server. Debugging can be harder because when a problem arises, it is
116 not always readily apparent whether the problem is in the application,
117 is in the database library, or is a result of an unexpected interaction
118 between the two. Debugging can be easier because it is easier to track
119 down a problem when you can review a stack trace rather than
120 deciphering interprocess communication messages. This chapter is
121 intended to assist you with debugging applications and reporting bugs
122 to us so that we can provide you with the correct answer or fix as
123 quickly as possible.
124 </p>
125 <p>
126 When you encounter a problem, there are a few general actions you can
127 take:
128 </p>
129 <div class="variablelist">
130 <dl>
131 <dt>
132 <span class="term">Review the Berkeley DB error output:</span>
133 </dt>
134 <dd>
135 <p>
136 If an error output mechanism has been configured in the
137 Berkeley DB environment, additional run-time error messages
138 are made available to the applications. If you are not
139 using an environment, it is well worth modifying your
140 application to create one so that you can get more detailed
141 error messages. See
142 <a class="xref" href="debug_runtime.html" title="Run-time error information">Run-time error information</a>
143 for more information on configuring Berkeley DB to output these
144 error messages.
145 </p>
146 </dd>
147 <dt>
148 <span class="term">Review the options available for the <a href="../api_reference/C/envset_verbose.html" class="olink">DB_ENV-&gt;set_verbose()</a> method:</span>
149 </dt>
150 <dd>
151 <p>
152 Look to see if it offers any additional informational
153 and/or debugging messages that might help you understand
154 the problem.
155 </p>
156 </dd>
157 <dt>
158 <span class="term">Add run-time diagnostics:</span>
159 </dt>
160 <dd>
161 <p>
162 You can configure and build Berkeley DB to perform run-time
163 diagnostics. (By default, these checks are not done
164 because they can seriously impact performance.) See
165 <a class="xref" href="debug_compile.html" title="Compile-time configuration">Compile-time configuration</a>
166 for more information.
167 </p>
168 </dd>
169 <dt>
170 <span class="term">Apply all available patches:</span>
171 </dt>
172 <dd>
173 <p>
174 Before reporting a problem in Berkeley DB, please upgrade
175 to the latest Berkeley DB release, if possible, or at least
176 make sure you have applied any updates available for your
177 release from the
178 <a class="ulink" href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html" target="_top">
179 Berkeley DB web site
180 </a>.
181 </p>
182 </dd>
183 <dt>
184 <span class="term">Run the test suite:</span>
185 </dt>
186 <dd>
187 <p>
188 If you see repeated failures or failures of simple test
189 cases, run the Berkeley DB test suite to determine whether
190 the distribution of Berkeley DB you are using was built and
191 configured correctly.
192 </p>
193 </dd>
194 </dl>
195 </div>
196 </div>
197 </div>
198 <div class="navfooter">
199 <hr />
200 <table width="100%" summary="Navigation footer">
201 <tr>
202 <td width="40%" align="left"><a accesskey="p" href="install_multiple.html">Prev</a> </td>
203 <td width="20%" align="center"> </td>
204 <td width="40%" align="right"> <a accesskey="n" href="debug_compile.html">Next</a></td>
205 </tr>
206 <tr>
207 <td width="40%" align="left" valign="top">Building with multiple versions of Berkeley DB </td>
208 <td width="20%" align="center">
209 <a accesskey="h" href="index.html">Home</a>
210 </td>
211 <td width="40%" align="right" valign="top"> Compile-time configuration</td>
212 </tr>
213 </table>
214 </div>
215 </body>
216 </html>