Presentation “Magento Debugging” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
Magento debugging
Presentation “Magento Debugging” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
Basics
System > Configuration > DeveloperLogging
Template Path Hints
MAGENTO_ROOT/var/logsystem.log
exception.log
MAGENTO_ROOT/var/reportException handling > Graylog2, Loggly
Presentation “Magento Debugging” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
Blank page
A blanc page tells you nothing500 Internal Server Error = “look internally for the actual error”
Webserver (Apache, Nginx) error_log
Or enable PHP “display_errors”
Presentation “Magento Debugging” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
Magento extensions
Aoe_Profiler
Commerce Bug (astorm)
Mgt_Developertoolbar
Magento Debug (github.com/jreinke)
Magneto Debug
Yireo_ProfilerLog
Yireo_NewRelic
Presentation “Magento Debugging” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
Magento command-line tools
n98-magerun (+ composer)
modman
Presentation “Magento Debugging” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
Linux tools
git, vim, locate, lockrun
top, ps, free, netstat, vmstat, tcpdump, uptime, nice
lsof, iostat, htop, atop, pidstat
Percona Toolkit
Presentation “Magento Debugging” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
PHP environment
PHP settingslog_errors, display_errors, error_reporting
PHP modulesxdebug
Presentation “Magento Debugging” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
Magento programming
Mage::setIsDeveloperMode(true);
Zend_Debug::dump($variable);
Mage::log(var_export($entity->debug(), true)));
$model->getData();
Mage::app()->getConfig()->getNode()->asXML()
Presentation “Magento Debugging” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
New Relic
SubscriptionsNew Relic Free
New Relic Pro > application tracing (14 day trial)
MonitoringApplication (PHP, webserver, MySQL)
Server
MagentoYireo_NewRelic extension
Presentation “Magento Debugging” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
Zend Server
Z-RayDeep code inspection
php_prepend_file
Presentation “Magento Debugging” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
tweet @yireo
Top Related