Setting --debug enables Cactus' DEBUG flag which adds some more error checking that can help uncover issues. Similarly we should add the Carpet compile define CARPET_DEBUG to enable checking in Carpet.
Ideally tests should be run both with and without debug set.