MCPcopy
hub / github.com/loopbackio/loopback-next / debug

Method debug

packages/context/src/context.ts:184–193  ·  view source on GitHub ↗

* Wrap the debug statement so that it always print out the context name * as the prefix * @param args - Arguments for the debug

(...args: unknown[])

Source from the content-addressed store, hash-verified

182 * @param args - Arguments for the debug
183 */
184 protected debug(...args: unknown[]) {
185 /* istanbul ignore if */
186 if (!this._debug.enabled) return;
187 const formatter = args.shift();
188 if (typeof formatter === 'string') {
189 this._debug(`[%s] ${formatter}`, this.name, ...args);
190 } else {
191 this._debug('[%s] ', this.name, formatter, ...args);
192 }
193 }
194
195 /**
196 * A strongly-typed method to emit context events

Callers 11

addMethod · 0.95
unbindMethod · 0.95
closeMethod · 0.95
getResolutionContextMethod · 0.95
getMethod · 0.95
getSyncMethod · 0.95
controllerMethod · 0.45
serverMethod · 0.45
componentMethod · 0.45
lifeCycleObserverMethod · 0.45

Calls 1

_debugMethod · 0.80

Tested by

no test coverage detected