---
name: "mdb_debug"
section: "3"
platform: "linux"
package: "lmdb-doc"
version: "0.9.31-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mdb_debug"
---

# mdb\_debug(3)

Debug Macros

## NAME

debug - Debug Macros

## SYNOPSIS

### Macros

\#define **MDB\_DEBUG**   0\
 \#define **DPRINTF**(args)   ((void) 0)\
 \#define **DPUTS**(arg)   DPRINTF(('%s', arg))\
 \#define **DDBI**(mc)   	(((mc)-\>mc\_flags & **C\_SUB**) ? -(int)(mc)-\>mc\_dbi : (int)(mc)-\>mc\_dbi)\

## Detailed Description

## Macro Definition Documentation

### #define MDB\_DEBUG 0

Enable debug output. Needs variable argument macros (a C99 feature). Set this to 1 for copious tracing. Set to 2 to add dumps of all IDLs read from and written to the database (used for free space management).

### #define DPUTS(arg) DPRINTF(('%s', arg))

Print a debug string. The string is printed literally, with no format processing.

### #define DDBI(mc) (((mc)-\>mc\_flags & C\_SUB) ? -(int)(mc)-\>mc\_dbi : (int)(mc)-\>mc\_dbi)

Debugging output value of a cursor DBI: Negative in a sub-cursor.

## Author

Generated automatically by Doxygen for LMDB from the source code.
