Enhanced debug for prepared queries.