cauldron: support debug mode