Interpreter as a debugger replacement
Following the good idea of the logging pane included in MochiKit 1.1, I've included in the script that is loaded in every of my pages a small function that opens the interpreter in a new window.
function openInterpreter() { window.open('interpreter', ....); }
This allows me through the use of the "window.opener.document" object to inspect all the guts of my page, without the use of a debugger, and in several different browsers.
Sometimes I just want to inspect some expression, and it's easier to use the interpreter than to create a breakpoint and execute some code that hits the breakpoint.
I created a bookmark of the type "javascript:openInterpreter()", to show the interpreter. So this facility is hidden to normal users of my app.
I have changed the original interpreter a little in order to occupy less space, mainly by hiding the notes, unless I press a button to show them. I have also added a button to erase the contents by calling the invoke function.
