Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2012 Google Inc.
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  * use this file except in compliance with the License. You may obtain a copy of
  * the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
package elemental.html;
import  elemental.html.*;

Beginning with Firefox 4, the old Error Console has been deprecated in favor of the new, improved Web Console. The Web Console is something of a heads-up display for the web, letting you view error messages and other logged information. In addition, there are methods you can call to output information to the console, making it a useful debugging aid, and you can evaluate JavaScript on the fly.

The Web Console won't replace more advanced debugging tools like Firebug; what it does give you, however, is a way to let remote users of your site or web application gather and report console logs and other information to you. It also provides a lightweight way to debug content if you don't happen to have Firebug installed when something goes wrong.

Note: The Error Console is still available; you can re-enable it by changing the devtools.errorconsole.enabled preference to true and restarting the browser.
public interface Console {
  void assertCondition(boolean conditionObject arg);
  void count();
  void debug(Object arg);
  void dir();
  void dirxml();
  void error(Object arg);
  void group(Object arg);
  void groupCollapsed(Object arg);
  void groupEnd();
  void info(Object arg);
  void log(Object arg);
  void markTimeline();
  void profile(String title);
  void profileEnd(String title);
  void time(String title);
  void timeEnd(String titleObject arg);
  void timeStamp(Object arg);
  void trace(Object arg);
  void warn(Object arg);
New to GrepCode? Check out our FAQ X