Added debug diagnostics that should dump diagnostics on travis-ci.