Berkeley DB Reference Guide:
Debugging Applications
PrevRefNext

Introduction to debugging

Because Berkeley DB is an embedded library, debugging applications that use Berkeley DB is both harder and easier than debugging a separate server. Debugging can be harder because when a problem arises, it is not always readily apparent whether the problem is in the application, is in the database library, or is a result of an unexpected interaction between the two. Debugging can be easier because it is easier to track down a problem when you can review a stack trace rather than deciphering interprocess communication messages. This chapter is intended to assist you with debugging applications and reporting bugs to us so that we can provide you with the correct answer or fix as quickly as possible.

When you encounter a problem, there are a few general actions you can take:


Review the Berkeley DB error output: Review DB_ENV->set_verbose: Add run-time diagnostics: Apply all available patches: Run the test suite:

PrevRefNext

Copyright (c) 1996,2008 Oracle. All rights reserved.