.I5Berkeley DB Reference Guide: Debugging[P/

Berkeley DB Reference Guide: Debugging



0

Run-time Error Information



=Normally, when an error occurs in the Berkeley DB library, an?errno value is returned by the function. In some cases,Bhowever, this value may be insufficient to completely describe theDcause of the error, especially during initial application debugging.

CThere are four additional configuration options intended to provideBapplications with additional run-time error information. They areĢdb_errcall, db_errfile, db_errpfx andCdb_verbose.

=If these options are configured when the environment is firstginitialized by calling db_appinit, many Berkeley DB errors=will result in additional information being written to a file4or passed as an argument to an application function.

EThe Berkeley DB error reporting facility does not slow performance orEsignificantly increase application size, and may be run during normalIoperation as well as during debugging. Where possible, we recommend thatJthese options always be configured and the output saved in the filesystem.IWe have found that that this often saves time when debugging installation%or other system integration problems.

A’’