Option to turn `Debug` into no-op

Are you referring to the issue with io::Error::source not giving back the immediate error?

There is an inherent method for getting it (std::io::Error::get_ref) so it should be possible to inspect any error in the chain using a loop going through Error::source and attempting downcasting to go through io::Error::get_ref as linked in the last comment on the issue.