Full doc: https://universal-debug-api-js.netlify.com/
Remember the last time you had no clue about what your code was doing?
Wishing you could just turn logs on on a prod version?
This extension is a companion to Offirmo’s Universal Debug API, which provides your webapp with:
- loggers with controllable log level
- local overrides of variables
- debug commands (in beta)
- exposition of internal data (in beta)
Along with a UI to conveniently control those features.
You'll have to modify your source code
to include and use "Offirmo’s Universal Debug API" (https://universal-debug-api-js.netlify.com/)
but this comes at nearly no cost
since you only have to bundle/use a very small "placeholder" version, doing nothing at all.
However, when this extension is used and active,
the placeholder version will be dynamically replaced by an active version,
served by the extension.
The replacement is done synchronously before any other code can execute,
so it just works without any complex setup.