console.log informations is not correclty transcribed inside very sequential loops

28 views
Skip to first unread message

Luca Coraggio

unread,
Dec 28, 2013, 12:11:07 PM12/28/13
to fir...@googlegroups.com
I've a bad problem using Firebug and Firefox, both updated at last version.

 Considering that i've to keep trace of a value inside a function called 60 time per second (60 FPS), i see that this value is not correctly transcribed inside firebug console, and after a certai number of time it's not reported anymore.
Take a look at this page. Open firebug and see what i mean
http://coranncreazioni.altervista.org/pagr%20flip/index.html

This is the piece of code that should show console.log information.


setInterval( render, 1000 / 60 );

function render()
    {
       
        // Reset all pixels in the canvas
        context.clearRect( 0, 0, canvas.width, canvas.height );
       
        for( var i = 0, len = flips.length; i < len; i++ )
        {
            var flip = flips[i];
           
            if( flip.dragging )
            {
                flip.target = Math.max( Math.min( mouse.x / PAGE_WIDTH, 1 ), -1 );   
            }
        console.log( flip.target) <---// there
....

the "render" function is always active in all moments and in firebug i could see alway an updated value... Instead it is not showed after a certai number of milliseconds !

Is it a known issue? or simple firebug is not designed for this rule?

Sebastian Zartner

unread,
Dec 29, 2013, 3:03:50 PM12/29/13
to fir...@googlegroups.com
This should be fixed lately with issue 7036. You can try out Firebug 1.13a7 to verify if your problem is gone there.

Sebastian
Reply all
Reply to author
Forward
0 new messages