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

Function onBreakpointHit

debug-plugin/panel.js:52–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}, 250);
51
52function onBreakpointHit() {
53 evalInPage(
54 "globalThis._hyperscript.hdb && globalThis._hyperscript.hdb.getRenderedCode()",
55 function (html) {
56 if (html != null) {
57 document.querySelector(".code-container code").innerHTML = html;
58 if (html) {
59 _hyperscript.processNode(
60 document.querySelector(".code-container code"),
61 );
62 }
63 }
64 },
65 );
66
67 evalInPage(
68 "globalThis._hyperscript.hdb && globalThis._hyperscript.hdb.getRenderedConsole()",
69 function (html) {
70 const consoleEl = document.querySelector("#console");
71 consoleEl.innerHTML = html;
72 consoleEl.scrollTop = consoleEl.scrollHeight;
73 },
74 );
75}
76
77function escapeHTML(unsafe) {
78 return unsafe

Callers 1

panel.jsFile · 0.85

Calls 2

evalInPageFunction · 0.85
processNodeMethod · 0.45

Tested by

no test coverage detected