Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 98 by sandipchitale: Add JavaScript Object diagramming capability
to Scope Variables and Watch section
http://code.google.com/p/chromedevtools/issues/detail?id=98
SDK/Debugger version:
Eclipse version:
Google Chrome/V8 Embedder + version:
[For WebKit (WIP) protocol] Backend version:
OS + version:
What steps will reproduce the problem?
1. Nothing yet
What is the expected result?
1. It should be possible to see a diagram of properties, their prototype
and constructor chain in Scope Variables and Watch sections by invoking a
context menu. It should also possible to quickly evaluate expressions in
context and show the object diagram.
See:
http://sandipchitale.blogspot.com/2014/03/javascript-object-diagram-integration.html
I originally tried to write it as an extension using chrome.devtools.panel
api (which I would have preferred), but as of now it is not possible to
attach two debuggers to the same page. So I wrote this patch.
What happens instead?
1. This is not available yet.
The idea is to make it very clear where the instance variables and methods
are coming from. This will also help JavaScript beginners understand the
JavaScript prototypical inheritance and chaining as well as property
override in a visual way. If so I can submit a patch. The implementation
uses an open source jquery svg library though.
The question is, is this a worthwhile addition to devtools.
Attachments:
devtoolsissuecontextmenu.png 13.6 KB
devtoolsissue.png 20.6 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings