Firebug does not refresh with script changes uploaded to server

250 views
Skip to first unread message

Jondevelop

unread,
Jun 21, 2012, 10:30:40 PM6/21/12
to Firebug
Hi,

I am currently having trouble with Firebug 1.9.2 in Firefox 13.0.1.

1. I debug/edit Javascript on my local Windows 7 machine.
2. I upload my changes to the server (Apache) via Filezilla FTP.
3. I load the web page in question. If the window was already open, I
refresh with F5 or Control+F5.
4. I check Firebug > Script for the javascript changes, and Firebug >
Console for errors.
5. I repeat Steps 1-5, until, lo and behold, Firebug no longer
displays updates in the Script Panel.

For example:

I open Firebug > Script, and look at the file display.canvas.js

...

function cycle(time) {
previousCycle = time;
requestAnimationFrame(cycle);
}

...

I make the following change on my local machine:

function cycle(time) {
renderCursor(time);
previousCycle = time;
requestAnimationFrame(cycle);
}

I FTP the file back up to the server, noting the time stamp 19:20:13,
or whatever time it is, has indeed changed.

I open the browser and Firebug still displays this:

function cycle(time) {
previousCycle = time;
requestAnimationFrame(cycle);
}

To be clear, I have cleared the cached, pressed Ctrl + F5, even
restarted my laptop, to no avail.

Any help is appreciated.

thank you,
Jondevelop




Jan Honza Odvarko

unread,
Jun 22, 2012, 9:03:52 AM6/22/12
to Firebug
Do you see the problem with Firebug 1.10?
http://getfirebug.com/releases/firebug/1.10/

Honza

Jondevelop

unread,
Jun 22, 2012, 10:33:50 PM6/22/12
to fir...@googlegroups.com
I'll see what i can discover with the Firebug version you recommended.
Oddly enough, I opened the site a few minutes and the code is there now.

I guess i should have added that the site is http://html5.jonathandevelop.com/.

Its an HTML 5 Game book i'm going thru,
"HTML 5 Games: Creating Fun with HTML5, CSS3, and WebGL" by Jacob Seidelin

Apparently its a tough problem to reproduce.
I think a similar problem is going on in Google Chrome, but I cannot be sure.

I wonder if its something on my Windows 7 machine. I ran Spybot S & D last night...

Thanks anyway.

Jondevelop

unread,
Jun 22, 2012, 11:43:45 PM6/22/12
to fir...@googlegroups.com

I am betting there is a cache update problem somewhere in Firefox. I may attempt to change the name from

display.canvas.js
to
display.canvas.v12345.js

just to see what i get.

I wonder if Modernizr is behind the problem. Here is how display.canvas.js is loaded from a file called load.js

if (Modernizr.standalone) {
    Modernizr.load([
    {
        test : Modernizr.canvas,
        yep : "loader!scripts/display.canvas.js",
        nope : "loader!scripts/display.dom.js"
    },{
        test : Modernizr.webworkers,
        yep : [
            "loader!scripts/board.worker-interface.js",
            "preload!scripts/board.worker.js"
        ],
        nope : "loader!scripts/board.js"
    },{
        load : [
            "loader!scripts/input.js",
            "loader!scripts/screen.main-menu.js",
            "loader!scripts/screen.game.js",
            "loader!images/jewels"
                + jewel.settings.jewelSize + ".png"
        ]
    }
    ]);
}

And i carefully compared the timestamp in Filezilla when I uploaded the file, versus
what the header and response timestamps in Firebug said about the file:

http://html5.jonathandevelop.com/scripts/file-info.jpg




On Friday, June 22, 2012 8:03:52 AM UTC-5, Jan Honza Odvarko wrote:
Reply all
Reply to author
Forward
0 new messages