<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Share: logging PHP in console for debugging]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7096</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7096&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Share: logging PHP in console for debugging.]]></description>
		<lastBuildDate>Sat, 04 Nov 2017 14:57:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Share: logging PHP in console for debugging]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29455#p29455</link>
			<description><![CDATA[<p>@barbarian: Thanks for sharing.</p><p><a href="https://frontaccounting.com/fawiki/index.php?n=Devel.TrobleshootingFrontAccounting">Wiki</a>-ed it.</p><p><a href="http://www.chromelogger.com">ChromeLogger</a> is available for quite a few programming languages.</p><p>The entire Troubleshooting FA wiki page as on date is attached for offline usage.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 04 Nov 2017 14:57:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29455#p29455</guid>
		</item>
		<item>
			<title><![CDATA[Share: logging PHP in console for debugging]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29453#p29453</link>
			<description><![CDATA[<p>I just want to share a really simple way but helpful if you are developing application in FA (or PHP in general). You can log into browser console using this library: https://github.com/ccampbell/chromephp. Put the library file in includes/ folder.</p><p>Then, just add below code in session.inc.</p><div class="codebox"><pre><code>include_once($path_to_root . &quot;/includes/ChromePhp.php&quot;);
function ConsoleDebug($obj){
    ChromePhp::log($obj);
}</code></pre></div><p>You can use it for debugging by just call ConsoleDebug($anything). It will appear in the browser console. In firefox, you don&#039;t need to install anything but in chrome you need to install extension.</p><p>For me, it is useful to debug ajax call which FA use quite a lot in many places.</p>]]></description>
			<author><![CDATA[null@example.com (barbarian)]]></author>
			<pubDate>Sat, 04 Nov 2017 05:46:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29453#p29453</guid>
		</item>
	</channel>
</rss>
