How to use debug

Comprehensive debug code examples:

How to use debug.apply:

8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
  }

  _debug () {
    var args = [].slice.call(arguments);
    args[0] = '[' + this._id + '] ' + args[0];
    debug.apply(null, args);
  }
}

Peer.WEBRTC_SUPPORT = !!getBrowserRTC();

How to use debug.enable:

118
119
120
121
122
123
124
125
126
127
  expect(() => new App()).toThrow("must be initialized with a configuration");
});

describe("Testing mocked generator...", () => {
  it("should pass through in non-quiet mode (with DEBUG setting too)", async () => {
    debugInstance.enable("artifact-generator:*");

    const config = {
      _: ["generate"],
      inputResources: ["some_file.ttl"],

How to use debug.disable:

134
135
136
137
138
139
140
141
142
143
  expect(mockedResponse.noPrompt).toBe(true);
  expect(mockedResponse.stubbed).toBe(true);
});

it("should pass through in non-quiet mode", async () => {
  debugInstance.disable("artifact-generator:*");

  const config = {
    _: ["generate"],
    inputResources: ["some_file.ttl"],

How to use debug.default:

6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
exports.Decoder = exports.Encoder = exports.PacketType = exports.protocol = void 0;
const component_emitter_1 = require("@socket.io/component-emitter");
const binary_js_1 = require("./binary.js");
const is_binary_js_1 = require("./is-binary.js");
const debug_1 = require("debug"); // debug()
const debug = debug_1.default("socket.io-parser"); // debug()
/**
 * Protocol version.
 *
 * @public

How to use debug.debuglog:

8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718




/*<replacement>*/
var debug = require('util');
if (debug && debug.debuglog) {
  debug = debug.debuglog('stream');
} else {
  debug = function () {};
}
/*</replacement>*/