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.htmlThis 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?