Glamorous Toolkit[0] is pretty neat! More of something designed for making software on top of, but it's a pretty cool example of what's possible.
if (x instanceof foo) ShowUIForFoo
else if (x isnstanceof bar) ShowUIForBar
...
And then let you register your object UIs so they show up in the debugger.