inspector
inspector copied to clipboard
The Observable standard inspector.
Some libraries give functions that have methods and properties attached to them, observable should detect them and display them as if it were a standard object.
When walking an object, `valueof` attempts to access properties on the object's prototype: https://github.com/observablehq/inspector/blob/fe14a1befb66d197f22750312e650a33d7c5608c/src/object.js#L18-L26 Due to implementation details for getters on platform objects this throws `TypeError: Illegal invocation`, which then...
This should look visually similar, but selecting and copying a truncated string will now copy the entire string (excluding the “…”), even the portion that is not visible. I have...
Quick stab at #103. Not done.
Here is a simple idea inspired by the Chrome dev tools inspector. I understand why very long string values need to be truncated. However, sometimes, you want to inspect its...
It can render a large array no problem, but it chokes on a large string. For example, here’s 10MB string that causes the notebook to not respond: https://observablehq.com/d/e636d2d7612777e5
Ref. https://talk.observablehq.com/t/request-show-a-summary-of-a-class-similar-to-the-one-has-for-objects/3053
Currently, HTML elements that can’t be rendered (because they are rendered somewhere else) are shown as just `HTML[...]Element {}`, which doesn’t allow viewing the structure of the element. It would...
Currently we show the first 20 items, but it’d be nice to show the last few, too, because sometimes they’re weird.
From observablehq/notebook#210: > It’d be need to have an equivalent to Node’s [custom util.inspect hook](https://nodejs.org/api/util.html#util_custom_inspection_functions_on_objects).