MCPcopy
hub / github.com/pallets/werkzeug / addInfoPrompt

Function addInfoPrompt

src/werkzeug/debug/shared/debugger.js:155–171  ·  view source on GitHub ↗

* Add extra info

(elements)

Source from the content-addressed store, hash-verified

153 * Add extra info
154 */
155function addInfoPrompt(elements) {
156 for (let i = 0; i < elements.length; i++) {
157 elements[i].innerHTML =
158 "<p>To switch between the interactive traceback and the plaintext " +
159 'one, you can click on the "Traceback" headline. From the text ' +
160 "traceback you can also create a paste of it. " +
161 (!EVALEX
162 ? ""
163 : "For code execution mouse-over the frame you want to debug and " +
164 "click on the console icon on the right side." +
165 "<p>You can execute arbitrary Python code in the stack frames and " +
166 "there are some extra helpers available for introspection:" +
167 "<ul><li><code>dump()</code> shows all variables in the frame" +
168 "<li><code>dump(obj)</code> dumps all that's known about the object</ul>");
169 elements[i].classList.remove("nojavascript");
170 }
171}
172
173function addConsoleIconToFrames(frames) {
174 for (let i = 0; i < frames.length; i++) {

Callers 1

debugger.jsFile · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected