src/viewer.js
function(debugMode){

        for (var i = 0; i < this.world.getItemCount(); i++) {
            this.world.getItemAt(i).debugMode = debugMode;
        }

        this.debugMode = debugMode;
        this.forceRedraw();
    }
function(debugMode){

        for (var i = 0; i < this.world.getItemCount(); i++) {
            this.world.getItemAt(i).debugMode = debugMode;
        }

        this.debugMode = debugMode;
        this.forceRedraw();
    }
function ( debugMode ) { for ( var i = 0 ; i < this . world . getItemCount ( ) ; i ++ ) { this . world . getItemAt ( i ) . debugMode = debugMode ; } this . debugMode = debugMode ; this . forceRedraw ( ) ; }
Turns debugging mode on or off for this viewer.

@function
@param {Boolean} true to turn debug on, false to turn debug off.
Turns debugging mode on or off for this viewer .