MCPcopy Create free account
hub / github.com/GNOME/gjs / showDebuggeeValue

Function showDebuggeeValue

modules/script/_bootstrap/debugger.js:108–116  ·  view source on GitHub ↗
(dv, style = {pretty: options.pretty})

Source from the content-addressed store, hash-verified

106}
107
108function showDebuggeeValue(dv, style = {pretty: options.pretty}) {
109 const i = nextDebuggeeValueIndex++;
110 debuggeeValues[`$${i}`] = dv;
111 debuggeeValues['$$'] = dv;
112 const [brief, full] = debuggeeValueToString(dv, style);
113 print(`$${i} = ${brief}`);
114 if (full !== undefined)
115 print(full);
116}
117
118Object.defineProperty(Debugger.Frame.prototype, 'num', {
119 configurable: true,

Callers 3

doPrintFunction · 0.85
printPopFunction · 0.85
debugger.jsFile · 0.85

Calls 1

debuggeeValueToStringFunction · 0.85

Tested by

no test coverage detected