MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / brk

Function brk

debug-plugin/content-script.js:82–105  ·  view source on GitHub ↗
(_ctx)

Source from the content-addressed store, hash-verified

80 let renderedConsole = "";
81
82 const brk = function (_ctx) {
83 console.log("=== HDB///_hyperscript/debugger ===");
84
85 // Print initial context at startup
86 for (const v of Object.keys(ctx)) {
87 if (v == "meta") continue;
88 consoleHistory.push(v);
89 renderedConsole += makeConsoleHistoryEntry(v, ctx[v]);
90 }
91
92 hdbCounter++;
93
94 ui();
95 return new Promise((resolve, reject) => {
96 bus.addEventListener(
97 "continue",
98 () => {
99 resolve(runtime.findNext(cmd, ctx));
100 cmd = null;
101 },
102 { once: true },
103 );
104 });
105 };
106
107 const continueExec = function () {
108 bus.dispatchEvent(new Event("continue"));

Callers

nothing calls this directly

Calls 3

makeConsoleHistoryEntryFunction · 0.85
uiFunction · 0.70
findNextMethod · 0.45

Tested by

no test coverage detected