MCPcopy Create free account
hub / github.com/glideapps/quicktype / debug

Function debug

test/utils.ts:18–23  ·  view source on GitHub ↗
(x: T)

Source from the content-addressed store, hash-verified

16const DEBUG = typeof process.env.DEBUG !== "undefined";
17
18export function debug<T>(x: T): T {
19 if (DEBUG) {
20 console.log(x);
21 }
22 return x;
23}
24
25export function failWith(message: string, obj: any): never {
26 obj.cwd = process.cwd();

Callers 4

testMethod · 0.90
execFunction · 0.85
inDirFunction · 0.85
compareJsonFileToJsonFunction · 0.85

Calls

no outgoing calls

Tested by 1

testMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…