0.2.0 • Published 8 years ago

debug-proxy v0.2.0

Weekly downloads
76
License
MIT
Repository
github
Last release
8 years ago

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