Console.exception

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
(Separate Console API page for console.exception())
m (Added categories)
 
(One intermediate revision not shown)
Line 17: Line 17:
</source>
</source>
-
This prints <code style="background-color: #FFEBEB; color: red;">[[File:error.png]] Exception.</code> to the console.
+
This prints <code style="background-color: #FFEBEB; color: red;">[[File:error.png]] Exception</code> to the console.
== See also ==
== See also ==
Line 23: Line 23:
* [[console.assert]]
* [[console.assert]]
* [[Console API]]
* [[Console API]]
 +
 +
[[Category:Firebug]]
 +
[[Category:UI]]
 +
[[Category:API]]

Latest revision as of 00:13, 22 November 2013

Prints an error message together with an interactive stack trace of JavaScript execution at the point where the exception occurred.

This is similar to console.error with the difference that only the first parameter will be used as name for the error message while the other parameters are logged in an array.

Contents

[edit] Syntax

console.exception(object[, object, ...])

[edit] Parameters

[edit] object

Object to output in the console. This can be any kind of object.

[edit] Examples

console.exception("Exception");

This prints Error.png Exception to the console.

[edit] See also

Personal tools