<?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>unexpected[it] &#187; Debug</title>
	<atom:link href="http://www.unexpectedit.com/category/magento/debug/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unexpectedit.com</link>
	<description>Professional IT Blog</description>
	<lastBuildDate>Tue, 31 Jan 2012 21:55:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP Magento Debug</title>
		<link>http://www.unexpectedit.com/magento/debug/php-magento-debug</link>
		<comments>http://www.unexpectedit.com/magento/debug/php-magento-debug#comments</comments>
		<pubDate>Mon, 14 Jun 2010 20:18:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debug]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[methods]]></category>

		<guid isPermaLink="false">http://www.unexpectedit.com/?p=116</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: php; highlight: [31,32,33,34,35]; title: ; notranslate">
//Print all methods
echo '&lt;ul&gt;';
	foreach (get_class_methods(get_class($this)) as $cThis)
		echo '&lt;li&gt;' . $cThis . '&lt;/li&gt;';
echo '&lt;/ul&gt;';
//Force an error and get info
throw new Exception(&quot;&quot;.print_r($array_or_classes,true));
//Print info from objects
var_export(array_keys( $array ))
//Print attributes
print_r($customer-&gt;debug());

/**
* Debug SQL Queries - Log queries in a file
*
*/
// Modify this function: /lib/Varien/Db/Adapter/Pdo/Mysql.php
// Note: the debug file will be in /var/debug/sql.txt
// File: /lib/Varien/Db/Adapter/Pdo/Mysql.php
protected $_debug               = true;
protected $_logAllQueries       = true; 
</pre>
<div id="wpcr_respond_1"></div>]]></content:encoded>
			<wfw:commentRss>http://www.unexpectedit.com/magento/debug/php-magento-debug/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

