debug-proxy
v0.2.0
Published
Client side proxy for visionmedia/debug to allow delayed loading
Downloads
41
Maintainers
Readme
debug-proxy
debug, loaded asynchronously using require.ensure
when
it's needed on the client. Only load debug when it's being used.
$ npm i debug-proxy --save
Use it like you would debug.
var debug = require('debug-proxy')('some-namespace');
debug('Starting');
To enable debugging, open the console and run
window.localStorage.debug='*'; // Or x:*, etc
window.__enableDebugging();
This will asynchronously load debug using require.ensure
. Debugging events will appear in your console immediately.
To disable debugging, run
window.__disableDebugging();
Licence
MIT