Dart API Referencedart:htmlConsole

Console Interface

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.

webconsole.png

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.

Methods

Code void assertCondition(bool condition, Object arg) #

void assertCondition(bool condition, Object arg);

Code void count(Object arg) #

void count(Object arg);

Code void debug(Object arg) #

void debug(Object arg);

Code void dir(Object arg) #

void dir(Object arg);

Code void dirxml(Object arg) #

void dirxml(Object arg);

Code void error(Object arg) #

void error(Object arg);

Code void group(Object arg) #

void group(Object arg);

Code void groupCollapsed(Object arg) #

void groupCollapsed(Object arg);

Code void groupEnd() #

void groupEnd();

Code void info(Object arg) #

void info(Object arg);

Code void log(Object arg) #

void log(Object arg);

Code void markTimeline(Object arg) #

void markTimeline(Object arg);

Code void profile(String title) #

void profile(String title);

Code void profileEnd(String title) #

void profileEnd(String title);

Code void time(String title) #

void time(String title);

Code void timeEnd(String title, Object arg) #

void timeEnd(String title, Object arg);

Code void timeStamp(Object arg) #

void timeStamp(Object arg);

Code void trace(Object arg) #

void trace(Object arg);

Code void warn(Object arg) #

void warn(Object arg);

Fields

Code final MemoryInfo memory #

final MemoryInfo memory;

Code final List<ScriptProfile> profiles #

final List<ScriptProfile> profiles;

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.