<p>WebKit/Safari supports the console object, which is similar to what Firebug does. But what exactly is supported? There is a <a href="http://getfirebug.com/wiki/index.php/Console_API" rel="noreferrer">console documentation for Firebug</a>, but where can I find the console documentation for Safari/WebKit?</p>

[{'answer_id': 55653, 'author': 'georgebrock', 'author_id': 5168, 'author_profile': 'https://Stackoverflow.com/users/5168', 'pm_score': 7, 'selected': True, 'text': '<p>Supported methods were originally:</p>\n\n<ul>\n<li><code>console.log()</code></li>\n<li><code>console.error()</code></li>\n<li><code>console.warn()</code></li>\n<li><code>console.info()</code></li>\n</ul>\n\n<p>Newer versions of WebKit also add the following methods making the WebKit console API almost identical to <a href="http://getfirebug.com/wiki/index.php/Console_API" rel="noreferrer">Firebug\'s console API</a>:</p>\n\n<ul>\n<li><code>console.count()</code></li>\n<li><code>console.debug()</code></li>\n<li><code>console.profileEnd()</code></li>\n<li><code>console.trace()</code></li>\n<li><code>console.dir()</code></li>\n<li><code>console.dirxml()</code></li>\n<li><code>console.assert()</code></li>\n<li><code>console.time()</code></li>\n<li><code>console.profile()</code></li>\n<li><code>console.timeEnd()</code></li>\n<li><code>console.group()</code></li>\n<li><code>console.groupEnd()</code></li>\n</ul>\n\n<p>(New information based on the WebKit nightly build WebKit-SVN-r37126, at the time of writing these methods aren\'t available in Safari)</p>\n'}, {'answer_id': 2165088, 'author': 'David W. Keith', 'author_id': 262133, 'author_profile': 'https://Stackoverflow.com/users/262133', 'pm_score': 5, 'selected': False, 'text': '<p>The console API is documented by Apple in the <a href="https://developer.apple.com/library/content/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Console/Console.html" rel="nofollow noreferrer">Console</a> section of the Safari Developer Guide.</p>\n'}, {'answer_id': 3408225, 'author': 'robcee', 'author_id': 198364, 'author_profile': 'https://Stackoverflow.com/users/198364', 'pm_score': 2, 'selected': False, 'text': '<p>Firebug\'s Console API documentation has moved here:</p>\n\n<p><a href="http://getfirebug.com/wiki/index.php/Console_API" rel="nofollow noreferrer">http://getfirebug.com/wiki/index.php/Console_API</a></p>\n'}, {'answer_id': 4698391, 'author': 'Kerrick', 'author_id': 126329, 'author_profile': 'https://Stackoverflow.com/users/126329', 'pm_score': 4, 'selected': False, 'text': "<p>I know this is an old and answered question, but you can also just open the console and type <code>console.__proto__</code>, and you'll get an expandable list of everything it supports.</p>\n"}, {'answer_id': 6022331, 'author': 'George Mauer', 'author_id': 5056, 'author_profile': 'https://Stackoverflow.com/users/5056', 'pm_score': 2, 'selected': False, 'text': '<p>Try this out:</p>\n\n<pre><code>console.dir(console)\n</code></pre>\n'}, {'answer_id': 11050357, 'author': 'arri', 'author_id': 194536, 'author_profile': 'https://Stackoverflow.com/users/194536', 'pm_score': 0, 'selected': False, 'text': '<p>The Console object appearantly has a built-in \'API\', in the form of a \'private property\' you can reveal by doing this in the Webkit javascript-console</p>\n\n<pre><code>&gt; for(o in console) console.dir(o)\n    _commandLineAPI\n    log\n    warn\n    …\n</code></pre>\n\n<p>_commandLineAPI:</p>\n\n<pre><code>&gt; console.dir(_commandLineAPI)\n  CommandLineAPI\n    $0: "—"\n    $1: "—"\n    $2: "—"\n    $3: "—"\n    $4: "—"\n    $$: bound: function () {\n    $x: bound: function (xpath, context) {\n    clear: bound: function () {\n    copy: bound: function (object) {\n    dir: bound: function () {\n    dirxml: bound: function () {\n    inspect: bound: function (object) {\n    keys: bound: function (object) {\n    monitorEvents: bound: function (object, types) {\n    profile: bound: function () {\n    profileEnd: bound: function () {\n    unmonitorEvents: bound: function (object, types) {\n    values: bound: function (object) {\n    __proto__: CommandLineAPI\n</code></pre>\n'}, {'answer_id': 48357615, 'author': 'Laimonas', 'author_id': 1790707, 'author_profile': 'https://Stackoverflow.com/users/1790707', 'pm_score': 0, 'selected': False, 'text': '<p>At the moment safari console <a href="https://developer.apple.com/library/content/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Console/Console.html#//apple_ref/doc/uid/TP40007874-CH6-SW1" rel="nofollow noreferrer">URL</a> is broken.</p>\n\n<p>Here\'s copy(press "Run code snippet"):\n<a href="https://i.stack.imgur.com/3uTn8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3uTn8.png" alt="enter image description here"></a>\n<div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">\r\n<div class="snippet-code">\r\n<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;article id="contents" tabindex="0" role="main" class="isShowingTOC"&gt;\r\n  &lt;a id="top" name="top"&gt;&lt;/a&gt;\r\n        &lt;a id="INDEX" href="/web/20170322101551/https://developer.apple.com/library/content/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/index.html" style="display:none;" onclick="s_objectID=&amp;quot;http://web.archive.org/web/20170322101551/https://developer.apple.com/library/content/documentati_9&amp;quot;;return this.s_oc?this.s_oc(e):true"&gt;&lt;/a&gt;\r\n        \r\n        &lt;a name="//apple_ref/doc/uid/TP40007874-CH6-SW1" title="The Console"&gt;&lt;/a&gt;&lt;h1 id="pageTitle"&gt;The Console&lt;/h1&gt;&lt;p&gt;The console offers a way to inspect and debug your webpages. Think of it as the Terminal of your web content. The console has access to the DOM and JavaScript of the open page. Use the console as a tool to modify your web content via interactive commands and as a teaching aid to expand your knowledge of JavaScript. Because an object’s methods and properties autocomplete as you type, you can see all available functions that are valid in Safari.&lt;/p&gt;&lt;p&gt;For example, open the console and type &lt;code&gt;$$(‘p’)[1]&lt;/code&gt;. (&lt;code&gt;$$&lt;/code&gt; is shorthand for &lt;code&gt;document.querySelectorAll&lt;/code&gt;—see more shorthand commands in &lt;span class="content_text"&gt;&lt;a href="#//apple_ref/doc/uid/TP40007874-CH6-SW7" data-renderer-version="1" onclick="s_objectID=&amp;quot;http://web.archive.org/web/20170322101551/https://developer.apple.com/library/content/documentati_10&amp;quot;;return this.s_oc?this.s_oc(e):true"&gt;Table 5-1&lt;/a&gt;&lt;/span&gt;.) Because this paragraph is the second instance of the &lt;code&gt;p&lt;/code&gt; element on this page (&lt;code&gt;[1]&lt;/code&gt; in a 0-based index), the node represents this paragraph. As you hover over the node, its position on the page is visibly highlighted. You can expand the node to see its contents, and even press Command-C to copy it to your clipboard.&lt;/p&gt;&lt;section&gt;&lt;a name="//apple_ref/doc/uid/TP40007874-CH6-SW5" title="Command-Line API"&gt;&lt;/a&gt;&lt;h2 class="jump"&gt;Command-Line API&lt;/h2&gt;&lt;p&gt;You can inspect HTML nodes and JavaScript objects in more detail by using the console commands listed in &lt;span class="content_text"&gt;Table 5-1&lt;/span&gt;. Type the command-line APIs interactively within the console.&lt;/p&gt;&lt;p&gt;If your scripts share the same function name as a Command-Line API function, the function in your scripts takes precedence.&lt;/p&gt;&lt;a name="//apple_ref/doc/uid/TP40007874-CH6-SW7" title="Table 5-1Commands available in the Web Inspector console"&gt;&lt;/a&gt;&lt;div class="tableholder"&gt;&lt;table class="graybox" border="0" cellspacing="0" cellpadding="5"&gt;&lt;caption class="tablecaption"&gt;&lt;strong class="caption_number"&gt;Table 5-1&lt;/strong&gt;&amp;nbsp;&amp;nbsp;Commands available in the Web Inspector console&lt;/caption&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th scope="col" class="TableHeading_TableRow_TableCell"&gt;&lt;p&gt;Command&lt;/p&gt;&lt;/th&gt;&lt;th scope="col" class="TableHeading_TableRow_TableCell"&gt;&lt;p&gt;Description&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;$(&lt;/code&gt;&lt;em&gt;selector&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Shorthand for &lt;code&gt;document.querySelector&lt;/code&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;$$(&lt;/code&gt;&lt;em&gt;selector&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Shorthand for &lt;code&gt;document.querySelectorAll&lt;/code&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;$x(&lt;/code&gt;&lt;em&gt;xpath&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Returns an array of elements that match the given &lt;span class="content_text"&gt;&lt;a href="http://web.archive.org/web/20170322101551/http://www.w3.org/TR/xpath/" class="urlLink" rel="external" onclick="s_objectID=&amp;quot;http://web.archive.org/web/20170322101551/http://www.w3.org/TR/xpath/_1&amp;quot;;return this.s_oc?this.s_oc(e):true"&gt;XPath&lt;/a&gt;&lt;/span&gt; expression.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;$0&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Represents the currently selected node in the content browser.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;$&lt;/code&gt;&lt;em&gt;1..4&lt;/em&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Represents the last, second to last, third to last, and fourth to last selected node in the content browser, respectively. &lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;$_&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Returns the value of the last evaluated expression.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;dir(&lt;/code&gt;&lt;em&gt;object&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints all the properties of the object.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;dirxml(&lt;/code&gt;&lt;em&gt;object&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints all the properties of the object. If the object is a node, prints the node and all child nodes.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;keys(&lt;/code&gt;&lt;em&gt;object&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints an array of the names of the object’s own properties.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;values(&lt;/code&gt;&lt;em&gt;object&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints an array of the values of the object’s own properties.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;profile(&lt;/code&gt;&lt;em&gt;[title]&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Starts the JavaScript profiler. The optional argument &lt;code&gt;title&lt;/code&gt; contains the string to be printed in the header of the profile report. See &lt;span class="content_text"&gt;&lt;a href="/web/20170322101551/https://developer.apple.com/library/content/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Instruments/Instruments.html#//apple_ref/doc/uid/TP40007874-CH4-SW7" data-renderer-version="1" onclick="s_objectID=&amp;quot;http://web.archive.org/web/20170322101551/https://developer.apple.com/library/content/documentati_11&amp;quot;;return this.s_oc?this.s_oc(e):true"&gt;JavaScript and Events Recording&lt;/a&gt;&lt;/span&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;profileEnd()&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Stops the JavaScript profiler and prints its report. See &lt;span class="content_text"&gt;&lt;a href="/web/20170322101551/https://developer.apple.com/library/content/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Instruments/Instruments.html#//apple_ref/doc/uid/TP40007874-CH4-SW7" data-renderer-version="1" onclick="s_objectID=&amp;quot;http://web.archive.org/web/20170322101551/https://developer.apple.com/library/content/documentati_12&amp;quot;;return this.s_oc?this.s_oc(e):true"&gt;JavaScript and Events Recording&lt;/a&gt;&lt;/span&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;getEventListeners(&lt;/code&gt;&lt;em&gt;object&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints an object containing the object’s attached event listeners.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;monitorEvents(&lt;/code&gt;&lt;em&gt;object[, types]&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Starts logging all events dispatched to the given object. The optional argument &lt;code&gt;types&lt;/code&gt; defines specific events or event types to log, such as “click”.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;unmonitorEvents(&lt;/code&gt;&lt;em&gt;object[, types]&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Stops logging for all events dispatched to the given object. The optional argument &lt;code&gt;types&lt;/code&gt; defines specific events or event types to stop logging, such as “click”.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;inspect(&lt;/code&gt;&lt;em&gt;object&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Inspects the given object; this is the same as clicking the Inspect button.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;copy(&lt;/code&gt;&lt;em&gt;object&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Copies the given object to the clipboard.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;clear()&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Clears the console.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;The functions listed in &lt;span class="content_text"&gt;Table 5-1&lt;/span&gt; are regular JavaScript functions that are part of the Web Inspector environment. That means you can use them as you would any JavaScript function. For example, you can assign a chain of Console API commands to a variable to create a useful shorthand. &lt;span class="content_text"&gt;Listing 5-1&lt;/span&gt; shows how you can quickly see all event types attached to the selected node.&lt;/p&gt;&lt;a name="//apple_ref/doc/uid/TP40007874-CH6-SW6" title="Listing 5-1Find the events attached to this element"&gt;&lt;/a&gt;&lt;p class="codesample clear"&gt;&lt;strong class="caption_number"&gt;Listing 5-1&lt;/strong&gt;&amp;nbsp;&amp;nbsp;Find the events attached to this element&lt;/p&gt;&lt;div class="codesample clear"&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;pre&gt;var evs = function () {&lt;span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;pre&gt;    return keys(getEventListeners($0));&lt;span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;pre&gt;};&lt;span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;After defining this function, inspect the magnifying glass in the top-right corner of this webpage, and type &lt;code&gt;evs()&lt;/code&gt; in the console. An array containing the string “click” is returned, because there is a click event listener attached to that element.&lt;/p&gt;&lt;p&gt;Of course, these functions shouldn’t be included in your website’s JavaScript files because they are not available in the browser environment. Only use these functions in the Web Inspector console. Console functions you can include in your scripts are described in &lt;span class="content_text"&gt;&lt;a href="#//apple_ref/doc/uid/TP40007874-CH6-SW3" data-renderer-version="1" onclick="s_objectID=&amp;quot;http://web.archive.org/web/20170322101551/https://developer.apple.com/library/content/documentati_13&amp;quot;;return this.s_oc?this.s_oc(e):true"&gt;Console API&lt;/a&gt;&lt;/span&gt;.&lt;/p&gt;&lt;/section&gt;&lt;section&gt;&lt;a name="//apple_ref/doc/uid/TP40007874-CH6-SW3" title="Console API"&gt;&lt;/a&gt;&lt;h2 class="jump"&gt;Console API&lt;/h2&gt;&lt;p&gt;You can output messages to the console, add markers to the timeline, and control the debugger directly from your scripts by using the commands listed in &lt;span class="content_text"&gt;Table 5-2&lt;/span&gt;.&lt;/p&gt;&lt;div class="importantbox clear"&gt;&lt;aside&gt;&lt;a name="//apple_ref/doc/uid/TP40007874-CH6-DontLinkElementID_5" title="Important"&gt;&lt;/a&gt;&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt;&amp;nbsp;These functions exist to aid development and should not be included in any of your production JavaScript.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/aside&gt;&lt;/div&gt;&lt;a name="//apple_ref/doc/uid/TP40007874-CH6-SW8" title="Table 5-2JavaScript functions available in the Console API"&gt;&lt;/a&gt;&lt;div class="tableholder"&gt;&lt;table class="graybox" border="0" cellspacing="0" cellpadding="5"&gt;&lt;caption class="tablecaption"&gt;&lt;strong class="caption_number"&gt;Table 5-2&lt;/strong&gt;&amp;nbsp;&amp;nbsp;JavaScript functions available in the Console API&lt;/caption&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th scope="col" class="TableHeading_TableRow_TableCell"&gt;&lt;p&gt;Function&lt;/p&gt;&lt;/th&gt;&lt;th scope="col" class="TableHeading_TableRow_TableCell"&gt;&lt;p&gt;Description&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.assert(expression, object)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Asserts whether the given expression is true. If the assertion fails, prints the error and increments the number of errors in the activity viewer. If the assertion succeeds, prints nothing.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.clear()&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Clears the console.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.count([title])&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints the number of times this line has been called.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.debug(object)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Alias of &lt;code&gt;console.log()&lt;/code&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.dir(object)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints the properties and values of the object.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.dirxml(node)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints the DOM tree of an HTML or XML node.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.error(object)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints a message to the console with the error icon. Increments the number of errors shown in the activity viewer.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.group([title])&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints subsequent logs under a disclosure of the given title.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.groupEnd()&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Ends the previously declared console grouping.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.info(object)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Alias of &lt;code&gt;console.log()&lt;/code&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.log(object)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints the object to the console with the log icon. Increments the number of logs shown in the activity viewer.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.markTimeline(&lt;/code&gt;&lt;em&gt;label&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Marks the Timeline with a green vertical dashed line that indicates when this line of code was called. See &lt;span class="content_text"&gt;&lt;a href="/web/20170322101551/https://developer.apple.com/library/content/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Instruments/Instruments.html#//apple_ref/doc/uid/TP40007874-CH4-SW2" data-renderer-version="1" onclick="s_objectID=&amp;quot;http://web.archive.org/web/20170322101551/https://developer.apple.com/library/content/documentati_14&amp;quot;;return this.s_oc?this.s_oc(e):true"&gt;Recording Timelines&lt;/a&gt;&lt;/span&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.profile(&lt;/code&gt;&lt;em&gt;[title]&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Starts the JavaScript profiler. The optional argument &lt;code&gt;title&lt;/code&gt; contains the string to be printed in the header of the profile report. See &lt;span class="content_text"&gt;&lt;a href="/web/20170322101551/https://developer.apple.com/library/content/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Instruments/Instruments.html#//apple_ref/doc/uid/TP40007874-CH4-SW7" data-renderer-version="1" onclick="s_objectID=&amp;quot;http://web.archive.org/web/20170322101551/https://developer.apple.com/library/content/documentati_15&amp;quot;;return this.s_oc?this.s_oc(e):true"&gt;JavaScript and Events Recording&lt;/a&gt;&lt;/span&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.profileEnd(&lt;/code&gt;&lt;em&gt;[title]&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Stops the JavaScript profiler and prints its report. See &lt;span class="content_text"&gt;&lt;a href="/web/20170322101551/https://developer.apple.com/library/content/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Instruments/Instruments.html#//apple_ref/doc/uid/TP40007874-CH4-SW7" data-renderer-version="1" onclick="s_objectID=&amp;quot;http://web.archive.org/web/20170322101551/https://developer.apple.com/library/content/documentati_16&amp;quot;;return this.s_oc?this.s_oc(e):true"&gt;JavaScript and Events Recording&lt;/a&gt;&lt;/span&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.time(&lt;/code&gt;&lt;em&gt;name&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Starts a timer associated with the given name. Useful for timing the duration of segments of code.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.timeEnd(&lt;/code&gt;&lt;em&gt;name&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Stops the timer associated with the given name and prints the elapsed time to the console.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.trace()&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints a stack trace at the moment the function is called. See &lt;span class="content_text"&gt;&lt;a href="/web/20170322101551/https://developer.apple.com/library/content/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Debugger/Debugger.html#//apple_ref/doc/uid/TP40007874-CH5-SW6" data-renderer-version="1" onclick="s_objectID=&amp;quot;http://web.archive.org/web/20170322101551/https://developer.apple.com/library/content/documentati_17&amp;quot;;return this.s_oc?this.s_oc(e):true"&gt;Figure 4-2&lt;/a&gt;&lt;/span&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;console.warn(&lt;/code&gt;&lt;em&gt;object&lt;/em&gt;&lt;code&gt;)&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prints a message to the console with the warning icon. Increments the number of warnings shown in the activity viewer.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td scope="row"&gt;&lt;p&gt;&lt;code&gt;debugger&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Stops JavaScript execution at the current line. This is the equivalent of setting a breakpoint programmatically. See &lt;span class="content_text"&gt;&lt;a href="/web/20170322101551/https://developer.apple.com/library/content/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Debugger/Debugger.html#//apple_ref/doc/uid/TP40007874-CH5-SW2" data-renderer-version="1" onclick="s_objectID=&amp;quot;http://web.archive.org/web/20170322101551/https://developer.apple.com/library/content/documentati_18&amp;quot;;return this.s_oc?this.s_oc(e):true"&gt;Breakpoints&lt;/a&gt;&lt;/span&gt;.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/section&gt;\r\n        \r\n        &lt;div class="copyright"&gt;&lt;br&gt;&lt;hr&gt;&lt;div align="center"&gt;&lt;p class="content_text" lang="en" dir="ltr"&gt; Updated: 2016-09-13&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;\r\n\r\n        &lt;div id="pediaWindow"&gt;\r\n            &lt;div id="pediaHeader"&gt;&lt;/div&gt;\r\n            &lt;div id="pediaBody"&gt;&lt;/div&gt;\r\n        &lt;/div&gt;\r\n    &lt;/article&gt;</code></pre>\r\n</div>\r\n</div>\r\n</p>\n'}]
['https://Stackoverflow.com/questions/55633', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5295/']