Difference between revisions of "Console.count"

From FirebugWiki
Jump to: navigation, search
(Separate Console API page for console.count())
m (Added categories)
Line 21: Line 21:
== See also ==
== See also ==
* [[Console API]]
* [[Console API]]

Revision as of 16:13, 21 November 2013

Writes the number of times that the line of code was executed where count was called.

There can be several counters for a page, which are distinguished by the line of code it is placed and the name it is given.





Name for the counter. This name will be displayed besides the count. If no name is given, different counters will just be distinguished by the line of code where console.count() is called.



This prints something like Exception 4 to the console, where 4 is the number of times the line of code was executed.

See also