Debug configuration will catch assert failures, while release mode will run heavier optimizations and may turn up issues around UB.