up: generalize the debug panel.