Yes, since from the caller's point of view a getter is a value (with
typically only idempotent side effects) the dev will want to see the
result. I suppose this can be a problem for mis-designed getters.
I assume this can be lazy? ie no rendering until the dev hovers?
> 2) For Error objects with stacks, render additional property
> "stackTrace" with structural stack info. Is a hack, but is probably
> worth doing
Is there a way to do this lazily, ie do not render until the dev
clicks on the log message? The stack can be 3000 x 100 bytes and 1000
log messages means 300M. Ok that's rare but it could be a performance
hit, which why I guess the getter was there in the first place.
Another idea would be an additional property "shortTrace" with 5
frames from the oldest and newest ends of the trace around a single
line telling how many frames are omitted. I think this would solve the
vast majority of the cases where we want to browse the stack.
Combined with the hover on getter we'd have a good combo.
jjb