smarter debug display