1 | ;
|
2 |
|
3 | var diagnostics = process.env.BROWSERIFYSHIM_DIAGNOSTICS;
|
4 |
|
5 | function inspect(obj, depth) {
|
6 | return require('util').inspect(obj, false, depth || 5, true);
|
7 | }
|
8 |
|
9 | exports = module.exports = function debug() {
|
10 | if (diagnostics) console.error.apply(console, arguments);
|
11 | }
|
12 |
|
13 | exports.inspect = function(obj, depth) {
|
14 | if (diagnostics) console.error(inspect(obj, depth));
|
15 | }
|