This section describes the procedures for debugging XQuery transformations that are executed against MarkLogic and Berkeley DB XML databases.