October 2006
Intermediate to advanced
288 pages
5h 55m
English
In order to log errors, warnings, debug messages or other random information we can use the different levels of logging that exist in FireBug. They not only visually separate different types of messages in the console, they also provide a link in the console to the exact line number in the source code where they reside. This can be extremely useful during development phases by eliminating excessive debugging time. In order to use these different methods in your JavaScript you would write them as follows:
console.debug("message" [,objects]);
console.info("message" [,objects]);
console.warn("message" [,objects]);
console.error("message" [,objects]);Read now
Unlock full access