How do I edit the script using firebug?
Asked
Active
Viewed 4,600 times
2
-
I retagged your question assuming that you meant javascript. – Anthony Accioly May 04 '11 at 16:38
-
@Orbling: Since Firebug can be used to manipulate/"edit" the DOM, it's a fair question. – Lightness Races in Orbit May 04 '11 at 16:42
-
@Tomalak Geret'kal: It can not edit scripts though. – Orbling May 04 '11 at 17:03
-
Actually you CAN change the script at runtime, use the Firebug console as shown here: http://stackoverflow.com/questions/3203779/how-to-edit-javascript-in-firebug-in-mozilla – demoncodemonkey Oct 07 '13 at 09:58
2 Answers
4
You can't, though you can execute arbitrary statements in the console, and modify the value of variables from the Watch pane.

Lightness Races in Orbit
- 378,754
- 76
- 643
- 1,055
-
Beat me to it. Just sharing something from the mail list to confirm what you have said: http://old.nabble.com/Edit-Script---Is-it-possible--td22713964.html – Anthony Accioly May 04 '11 at 16:45
-
Use the Firebug console as shown here: http://stackoverflow.com/questions/3203779/how-to-edit-javascript-in-firebug-in-mozilla – demoncodemonkey Oct 07 '13 at 09:59
0
You can edit HTML, debug javascript, watch and edit the variables, but you can't edit the script.

Ghassen Hamrouni
- 3,138
- 2
- 20
- 31