I got the latest version of Firebug and installed in on Firefox 3.5.5
browser.

I have a Javascript file which shows up as an enabled script so long
as I don't have the following function in the script file.

function onChangeUnitsOfLength() {
        var hUnits = getElementsById("hUnits");
        var m = getElementById("m");
        var in = getElementById("in");
        var ft = getElementById("ft");

        switch(hUnits.value) {
        case 0:
                m.style.zIndex= "-1";
                in.style.zIndex="0";
                ft.style.display="inline";
                break;
        case 1:
                m.style.zIndex="-1";
                ft.style.display="none";
                in.style.zIndex="0";
                break;
        case 2:
                m.style.zIndex="0";
                ft.style.display="none";
                in.style.zIndex="-1";
                break;
        default:
        };
};

When I add this function to the file, my file no longer shows in the
drop down menu and there is no code where I can set breakpoints.  I
don't think an error in the code should break the debugger but it
does.  It would be nice if there were some way to spot errors in the
code before you try to evaluate it.

--

You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.


Reply via email to