Вопрос

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?

Это было полезно?

Решение

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;

Другие советы

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top