Favourite Projects



It turns out Microsoft has javascript debugger for IE, but quess what…

April 4th, 2007 by lukav

Today I had to make an AJAX application iSPARQL compatible with Microsoft Internet Explorer, at same point we decided to not support it, but now we realized that some small part of it can be supported. We don’t supported because IE doesn’t support embedded SVG… Anyway…

I’ve spend several hours trying to catch some errors of the sort: “object expected” or “object doesn’t support this method or property”. Have you seen those? Yes, the once that doesn’t give a clue which is the object and the lines usually has nothing to do with the reality. So finally I’ve decided to find a JS debugger that would tell me at least where the problem is. I didn’t have much hope, because I’ve spend time to search before and didn’t find anything to my taste that did the job, until I found this: MSE – Microsoft Script Editor

Thank you Erik for the wonderfull post.

It turns out Microsoft has a debug for their free browser in their payed Office package. Funny isn’t it. It turns out that developers that want to easy their life when writing JS for IE has to purchase at least MS Office.

It is not perfect, or even good, but it is the best I have seam so far and at least you get to actually see the row where the error occured or even execute step by step.

Anyway here is what Erik have posted (on my installation – Office 2003 Professional the exe was called MSE7.EXE):

MSE – Microsoft Script Editor

Microsoft Script Editor is probably one of the lesser known tools that can really make a difference when it comes to developing web applications. MSE is a debugger, much like Visual Studio and it comes bundled with Microsoft Office. It should not be mistaken for Microsoft Script Debugger which is a piece of crap compared to MSE. MSE got all the nice features Visual Studio has without the bloat.

MSE is installed at %ProgramFiles%/Microsoft Office/OFFICE11/MSE7.exe. Older versions might be installed at a slightly different location and if you cannot find it just search for mse. If you still cannot find it and you have an old Microsoft Office CD lying around you can install it from there. If you select custom install or add remove components it should be located under Microsoft Office / Office Tools / HTML Tools /Web Scripting / Web Debugging.

By default script debugging is disabled in IE but you can enable it by
unchecking Tools / Internet Options... / Advanced / Disable script
debugging (Internet Explorer).

So how do you use this mysterious tool? MSE allows you to debug exisiting IE processes but more importantly it is triggered by the debugger statement (which by the way also works if you have Venkman opened for Mozilla). If you already have IE up and running or you can’t edit the source files of the web application you can get into the debug mode by opening the Debug / Processes dialog and from there select the process to attach to.

Once in debugg mode you can step through the program to see what is going on. Out of the box not much is shown but things like local variables, watch, running documents, call stack and more is available to you under Debug / Window.

Posted in EN, Tech | No Comments »

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.