* Add extra info
(elements)
| 153 | * Add extra info |
| 154 | */ |
| 155 | function 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 | |
| 173 | function addConsoleIconToFrames(frames) { |
| 174 | for (let i = 0; i < frames.length; i++) { |