javascript - Chrome Developer Tools: What is Snippets Support? - Stack Overflow
Snippets is now landed! It's no longer in experiments and you can find it in the sources panel. Best of all we have hugely comprehensive docs on snippets, now:
developers.google.com/chrome-developer-tools/docs/authoring-development-workflow#snippets
In short, snippets are a multi-line console, an iterative JS development workflow, and a persistent store for common debugging helpers. From the docs:
Some of the use-cases Snippets can help with are:
- Bookmarklets - all of your bookmarklets could be stored as snippets, especially those you may wish to edit.
- Utilities - debugging helpers for interacting with the current page can be stored and debugged. A community-curated list of such utilities is available.
- Debugging - Snippets offer a multi-line console with syntax-highlighting and persistance, making it convenience for debugging code that is more than a one-liner.
- Monkey-patching code - code you wish to patch at runtime can be done through Snippets, although many times you can just live-edit code in the Sources tab.
Read full article from javascript - Chrome Developer Tools: What is Snippets Support? - Stack Overflow
No comments:
Post a Comment