Added diagnostics for tokens in debug