public interface Console
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.
devtools.errorconsole.enabled
preference to true
and restarting the browser.Modifier and Type | Method and Description |
---|---|
void |
assertCondition(boolean condition,
Object arg) |
void |
count() |
void |
debug(Object arg) |
void |
dir() |
void |
dirxml() |
void |
error(Object arg) |
MemoryInfo |
getMemory() |
Indexable |
getProfiles() |
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 title,
Object arg) |
void |
timeStamp(Object arg) |
void |
trace(Object arg) |
void |
warn(Object arg) |
MemoryInfo getMemory()
Indexable getProfiles()
void assertCondition(boolean condition, Object 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 timeStamp(Object arg)
void trace(Object arg)
void warn(Object arg)
Copyright © 2016. All rights reserved.