Is there any ability to inspect the objects rendered on a HTML5 canvas like we can do in Silverlight with Silverlight Spy ?
If I use Chrome elements inspector I can inspect only DOM.
in the developer tools, click the gear to bring up developer preferences. select experiments from the menu. select Canvas Inspections.
The HTML5 canvas has the potential to become a staple of the web, enjoying ubiquitous browser and platform support in addition to widespread webpage support, as nearly 90% of websites have ported to HTML5.
Go to the Settings panel of Chrome Developer Tools by clicking the cog on the bottom right. Click the "Experiments" tab and check the option "Canvas inspection". Now visit the "Profile" tab and you will see an option called "Capture Canvas Frame". The Developer Tools may ask you to Reload the page to use the canvas.
The canvas element is part of HTML5 and allows for dynamic, scriptable rendering of 2D shapes and bitmap images.
EDIT: this answer doesn't work on new chrome versions see: chrome canvas inspector 2015
In Chrome Canary:
chrome://flags/
gear
to bring up developer preferencesThe full guide on the canvas profiler: http://www.html5rocks.com/en/tutorials/canvas/inspection/
Animated gif showing it in action: https://twitter.com/umaar/status/480705624448045057
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With