add completion diagnostics to debug mode