Diagnosis Tools for D code