Closed lostintangent closed 7 years ago
Our original spike instrumentation of the console
API didn't handle objects at all.
We've since added support for displaying objects, so let's make sure we're proxying .dir
(client and server side) now too.
In addition to console.dir
, we should also support console.dirxml
, although I don't think converting the object to XML is required I'm on the fence on if we should convert the object logged to XML or try to grab its outerHTML
- sending over that string. I'd love to know more about the technical implications of this.
👌
This is now available in version 0.14.1. For more information, please see our announcement. If you continue to experience this issue, please let us know. - :heart: the Glimpse team.
In practice, I believe most devs would use
console.log
, since that provides the same kind of behavior asconsole.dir
does (at least in most tools), however, there are apps that may be usingconsole.dir
from a historical perspective, and so it would be ideal if Glimpse displayed them as part of supporting the standard console API.