<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>console.log &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/consolelog/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>javascript: get function caller</title>
		<link>/2009/07/14/javascript-get-function-caller/</link>
		<comments>/2009/07/14/javascript-get-function-caller/#respond</comments>
		<pubDate>Tue, 14 Jul 2009 05:43:42 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[caller]]></category>
		<category><![CDATA[console.log]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">/?p=673</guid>
		<description><![CDATA[Who calls me? If that&#8217;s the question a JavaScript function is asking for, and respectively you are, there is one simple way to find the answer. Why would I need this? Well let assume I&#8217;ve one function called func1, called by both func2 and func3, explained into the following example: How I&#8217;d finally understand the &#8230; <a href="/2009/07/14/javascript-get-function-caller/" class="more-link">Continue reading <span class="screen-reader-text">javascript: get function caller</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/07/02/write-in-the-safari-javascript-console/" rel="bookmark" title="write in the Safari javascript console">write in the Safari javascript console </a></li>
<li><a href="/2010/02/12/how-to-detect-a-variable-existence-in-javascript/" rel="bookmark" title="How to detect a variable existence in JavaScript?">How to detect a variable existence in JavaScript? </a></li>
<li><a href="/2009/07/08/javascript-closures-in-brief/" rel="bookmark" title="JavaScript closures in brief">JavaScript closures in brief </a></li>
<li><a href="/2010/02/01/writing-a-jquery-plugin-part-2-sample-plugin/" rel="bookmark" title="Writing a jQuery plugin &#8211; (part 2). Sample plugin.">Writing a jQuery plugin &#8211; (part 2). Sample plugin. </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>Who calls me?</h2>
<p>If that&#8217;s the question a JavaScript function is asking for, and respectively you are, there is one simple way to find the answer.</p>
<h2>Why would I need this?</h2>
<p>Well let assume I&#8217;ve one function called func1, called by both func2 and func3, explained into the following example:</p>
<p><a href="/wp-content/uploads/2009/07/caller-javascript-example.png"><img class="alignnone size-full wp-image-677" title="javascript caller example sample javascript code" src="/wp-content/uploads/2009/07/caller-javascript-example.png" alt="" width="430" height="250" srcset="/wp-content/uploads/2009/07/caller-javascript-example.png 430w, /wp-content/uploads/2009/07/caller-javascript-example-300x174.png 300w" sizes="(max-width: 430px) 100vw, 430px" /><span id="more-673"></span></a></p>
<p style="text-align: center;">
<h2>How I&#8217;d finally understand the answer?</h2>
<p>Well if you&#8217;re using Firefox, I guess you are if web developing is your job, just add a console.log to see the caller function. Like in the above example. The answer can be seen in the Firebug console:</p>
<p><a href="/wp-content/uploads/2009/07/firebug-caller-example.png"><img class="alignnone size-full wp-image-678" title="firebug-caller-example" src="/wp-content/uploads/2009/07/firebug-caller-example.png" alt="" width="430" height="202" srcset="/wp-content/uploads/2009/07/firebug-caller-example.png 430w, /wp-content/uploads/2009/07/firebug-caller-example-300x140.png 300w" sizes="(max-width: 430px) 100vw, 430px" /></a></p>
<p>That is fine enough to understand the caller function and if needed to debug the js application. You need only to make for the test a simple HTML file. Example:</p>
<p><a href="/wp-content/uploads/2009/07/html-caller-example.png"><img class="alignnone size-full wp-image-679" title="HTML with javascript caller example" src="/wp-content/uploads/2009/07/html-caller-example.png" alt="" width="430" height="211" srcset="/wp-content/uploads/2009/07/html-caller-example.png 430w, /wp-content/uploads/2009/07/html-caller-example-300x147.png 300w" sizes="(max-width: 430px) 100vw, 430px" /></a></p>
<h2>Download</h2>
<p>You can download the example from <a title="JavaScript Caller Example" href="/wp-content/uploads/2009/07/javascript-caller-example.zip" target="_self">here</a>, or visit the <a title="Download Page" href="/download/" target="_self">download</a> page.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/07/02/write-in-the-safari-javascript-console/" rel="bookmark" title="write in the Safari javascript console">write in the Safari javascript console </a></li>
<li><a href="/2010/02/12/how-to-detect-a-variable-existence-in-javascript/" rel="bookmark" title="How to detect a variable existence in JavaScript?">How to detect a variable existence in JavaScript? </a></li>
<li><a href="/2009/07/08/javascript-closures-in-brief/" rel="bookmark" title="JavaScript closures in brief">JavaScript closures in brief </a></li>
<li><a href="/2010/02/01/writing-a-jquery-plugin-part-2-sample-plugin/" rel="bookmark" title="Writing a jQuery plugin &#8211; (part 2). Sample plugin.">Writing a jQuery plugin &#8211; (part 2). Sample plugin. </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/07/14/javascript-get-function-caller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>write in the Safari javascript console</title>
		<link>/2009/07/02/write-in-the-safari-javascript-console/</link>
		<comments>/2009/07/02/write-in-the-safari-javascript-console/#respond</comments>
		<pubDate>Thu, 02 Jul 2009 08:21:06 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[console.log]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">/?p=645</guid>
		<description><![CDATA[If you&#8217;ve to debug some script in Safari, and you&#8217;d wish to write into the javascript console, the simple advice is to use the same code as in Firefox. console.log(object); That&#8217;s all.<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/02/02/profiling-javascript-with-firebug-console-profile-console-time/" rel="bookmark" title="Profiling JavaScript with Firebug. console.profile() &#038; console.time()!">Profiling JavaScript with Firebug. console.profile() &#038; console.time()! </a></li>
<li><a href="/2009/07/08/javascript-closures-in-brief/" rel="bookmark" title="JavaScript closures in brief">JavaScript closures in brief </a></li>
<li><a href="/2010/02/03/firebugs-console-profile-vs-console-time/" rel="bookmark" title="Firebug&#8217;s console.profile vs console.time">Firebug&#8217;s console.profile vs console.time </a></li>
<li><a href="/2010/06/02/detecting-pressed-key-with-e-which-in-javascript/" rel="bookmark" title="Detecting Pressed Key with e.which in JavaScript">Detecting Pressed Key with e.which in JavaScript </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>If you&#8217;ve to debug some script in Safari, and you&#8217;d wish to write into the javascript console, the simple advice is to use the same code as in Firefox.</p>
<blockquote>
<pre>console.log(object);</pre>
</blockquote>
<p>That&#8217;s all.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/02/02/profiling-javascript-with-firebug-console-profile-console-time/" rel="bookmark" title="Profiling JavaScript with Firebug. console.profile() &#038; console.time()!">Profiling JavaScript with Firebug. console.profile() &#038; console.time()! </a></li>
<li><a href="/2009/07/08/javascript-closures-in-brief/" rel="bookmark" title="JavaScript closures in brief">JavaScript closures in brief </a></li>
<li><a href="/2010/02/03/firebugs-console-profile-vs-console-time/" rel="bookmark" title="Firebug&#8217;s console.profile vs console.time">Firebug&#8217;s console.profile vs console.time </a></li>
<li><a href="/2010/06/02/detecting-pressed-key-with-e-which-in-javascript/" rel="bookmark" title="Detecting Pressed Key with e.which in JavaScript">Detecting Pressed Key with e.which in JavaScript </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/07/02/write-in-the-safari-javascript-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
