debug-proxy

0.2.0 • Public • Published

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

Package Sidebar

Install

npm i debug-proxy

Weekly Downloads

24

Version

0.2.0

License

MIT

Last publish

Collaborators

  • suprememoocow