Question

I know this question has been asked before and already has a answer. But none of the solution seems to be working for me.

I have a html file. Inside of it I have written some javascript code. When I open the javascript inside scripts panel in Firebug, I am not able to edit the script . How can I do it?

Was it helpful?

Solution

Are the objects accessible from the console? Are you trying to edit functions?

If they are global functions, you can edit them using:

window.functionName = function () { };

I usually edit global objects using the Command Line:

global.param = 1;

OTHER TIPS

The Script panel currently (Firebug 1.12.7) doesn't allow to edit the JavaScript. See issue 5083 in the Firebug issue tracker.

Though what you can do is to edit global functions within the Command Editor. It is available inside the Console panel by clicking on the arrow symbol (enter image description here) at the right side of the Command Line.

You can access and overwrite the global functions and variables within it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top