Add a debug dump feature