webkit/glue/devtools/js/devtools.js
/**
 * Prints string  to the inspector console or shows alert if the console doesn't
 * exist.
 * @param {string} text
 */
Prints string  to the inspector console or shows alert if the console doesn't
exist.
@param {string} text
Prints string to the inspector console or shows alert if the console doesn ' t exist . @param { string } text
function debugPrint(text) {
  var console = WebInspector.console;
  if (console) {
    console.addMessage(new WebInspector.ConsoleMessage(
        '', undefined, 1, '', undefined, 1, text));
  } else {
    alert(text);
  }
}
function debugPrint ( text ) { var console = WebInspector . console ; if ( console ) { console . addMessage ( new WebInspector . ConsoleMessage ( '' , undefined , 1 , '' , undefined , 1 , text ) ) ; } else { alert ( text ) ; } }
Prints string  to the inspector console or shows alert if the console doesn't
 exist.
Prints string to the inspector console or shows alert if the console doesn ' t exist .