Debian Codegraph @

docs/installation/debug_runtime.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>Run-time error information</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="debug.html" title="Chapter 3.  Debugging Applications" />
11 <link rel="prev" href="debug_compile.html" title="Compile-time configuration" />
12 <link rel="next" href="debug_printlog.html" title="Reviewing Berkeley DB log files" />
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">Run-time error information</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="debug_compile.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 3. 
26 Debugging Applications
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="debug_printlog.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="debug_runtime"></a>Run-time error information</h2>
38 </div>
39 </div>
40 </div>
41 <p>Normally, when an error occurs in the Berkeley DB library, an integer value
42 (either a Berkeley DB specific value or a system <code class="literal">errno</code> value) is
43 returned by Berkeley DB. In some cases, however, this value may be
44 insufficient to completely describe the cause of the error, especially
45 during initial application debugging.</p>
46 <p>Most Berkeley DB errors will result in additional information being written
47 to a standard file descriptor or output stream. Additionally, Berkeley DB can
48 be configured to pass these verbose error messages to an application
49 function. There are four methods intended to provide applications with
50 additional error information:
51 <a href="../api_reference/C/envset_errcall.html" class="olink">DB_ENV-&gt;set_errcall()</a>, <a href="../api_reference/C/envset_errfile.html" class="olink">DB_ENV-&gt;set_errfile()</a>,
52 <a href="../api_reference/C/envset_errpfx.html" class="olink">DB_ENV-&gt;set_errpfx()</a> and <a href="../api_reference/C/envset_verbose.html" class="olink">DB_ENV-&gt;set_verbose()</a>.</p>
53 <p>The Berkeley DB error-reporting facilities do not slow performance or
54 significantly increase application size, and may be run during normal
55 operation as well as during debugging. Where possible, we recommend
56 these options always be configured and the output saved in the
57 filesystem. We have found that this often saves time when debugging
58 installation or other system-integration problems.</p>
59 <p>In addition, there are three methods to assist applications in
60 displaying their own error messages: <a href="../api_reference/C/envstrerror.html" class="olink">db_strerror()</a>, <a href="../api_reference/C/enverr.html" class="olink">DB_ENV-&gt;err()</a>,
61 and <code class="methodname">DB_ENV-&gt;errx()</code>. The first is a superset of
62 the ANSI C strerror function, and returns a descriptive string for any
63 error return from the Berkeley DB library. The <a href="../api_reference/C/enverr.html" class="olink">DB_ENV-&gt;err()</a> and
64 <code class="methodname">DB_ENV-&gt;errx()</code> methods use the error message configuration options
65 described previously to format and display error messages to appropriate
66 output devices.</p>
67 </div>
68 <div class="navfooter">
69 <hr />
70 <table width="100%" summary="Navigation footer">
71 <tr>
72 <td width="40%" align="left"><a accesskey="p" href="debug_compile.html">Prev</a> </td>
73 <td width="20%" align="center">
74 <a accesskey="u" href="debug.html">Up</a>
75 </td>
76 <td width="40%" align="right"> <a accesskey="n" href="debug_printlog.html">Next</a></td>
77 </tr>
78 <tr>
79 <td width="40%" align="left" valign="top">Compile-time configuration </td>
80 <td width="20%" align="center">
81 <a accesskey="h" href="index.html">Home</a>
82 </td>
83 <td width="40%" align="right" valign="top"> Reviewing Berkeley DB log files</td>
84 </tr>
85 </table>
86 </div>
87 </body>
88 </html>