How to make a diagnostic

How to make a diagnostic