Git Product home page Git Product logo

magneto-debug's Introduction

Magento Debug Toolbar

Based on robhudson's awesome work (https://github.com/robhudson/django-debug-toolbar) we've created a debug toolbar for Magento. It is installed as a Magento module without hacking Magento's core.

Basic features are implemented and few others will come soon. Check the screenshots for current features: https://github.com/madalinoprea/magneto-debug/wiki

Or demo video on YouTube: http://www.youtube.com/watch?v=aqvgrmebcu4

INSTALLATION

A) Via Modman - Recommended (https://github.com/colinmollenhour/modman)

1) Install Modman:

bash < <(wget -O - https://raw.github.com/colinmollenhour/modman/master/modman-installer)

or

bash < <(curl -s https://raw.github.com/colinmollenhour/modman/master/modman-installer)
source ~/.profile

2) Allow symlinks for the templates directory (required for installation via Modman)

3) Install Debug Toolbar module:

cd [magento root folder]
modman init
modman clone https://github.com/madalinoprea/magneto-debug.git
  • Make sure you've cleaned Magento's cache to enable the new module; hit refresh

How to update

I'm pretty lazy and I don't like to create Magento Connect packages. With modman you can effortlessly grab the latest changes from github.

modman update magneto-debug
  • Clean Magento's cache to make sure new changes will be enabled.

B) Via Magento Connect

Extension is not updated regularly. I recommend using modman.

cd [magento root folder]
sudo ./mage install community MagnetoDebug

Magento Connect extension package is available here: http://www.magentocommerce.com/magento-connect/sstoiana/extension/6714/magnetodebug

FEATURES

  • Now available in Admin (1.0.1 RC - fancy for I'm laizy to create Magento Connect package)
  • Magento module listing; Toggle Magento modules on the fly
  • Search configuration keys
  • Display peak memory usage, script execution time
  • Request information (controller name, action name, cookies variables, session variables, GET and POST variables)
  • Models instantiated
  • SQL queries executed for current request; ability to see queries' result or queries' execution plan (EXPLAIN)
  • List Magento configuration
  • Print layout handles for current request
  • Find xml files where a specific layout handle is defined
  • Created blocks, their associated templates; Preview templates' source code
  • Quick actions:
    • Toggle template hints
    • Clear cache
    • Toggle inline translation

KNOWN ISSUES

We're working to correct these:

  • To enable SQL profiler manually you have to add in your local.xml profiler tag <profiler>1</profiler> under connection, like in the example below:

    
        
            
            
            
            
            1
            1
        
    
  • Disable SQL Profiler is not working, but Enable SQL Profiler works like a charm (or not)

magneto-debug's People

Contributors

madalinoprea avatar sstoiana avatar rafal-kos avatar colinmollenhour avatar moleman avatar elluminatte avatar yesmeck avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.