substrate diagnose when something is wrong — or before filing a bug report. It exits non-zero if any probe fails, and every probe is wrapped so that a missing or malformed config.json produces a diagnostic line rather than a crash. Pair its output with substrate logs --errors to answer most first-round questions on an issue.