Git Product home page Git Product logo

pykettk / layout-debug Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7 KB

A Magento 2 development tool to help developers debug issues with their layout files.

Home Page: https://packagist.org/packages/element119/layout-debug

License: MIT License

PHP 100.00%
magento magento2 magento2-module magento2-extension magento2-module-free magento2-extension-free magento-module magento-extension magento-module-free magento-extension-free

layout-debug's Introduction

element119 | Layout Debug

status github release github release date magento php license packagist downloads


paypal


๐Ÿ“ Table of Contents


โ›“๏ธ Requirements

  • Magento 2.3.*
  • PHP >=7.0

๐Ÿ”Œ Installation

Run the following command to install this module:

composer install element119/layout-debug
php bin/magento module:enable Element119_LayoutDebug
php bin/magento setup:di:compile
php bin/magento static:content:deploy
php bin/magento setup:upgrade --keep-generated

โซ Updating

Run the following command to update this module:

composer update element119/layout-debug
php bin/magento module:enable Element119_LayoutDebug
php bin/magento setup:di:compile
php bin/magento static:content:deploy
php bin/magento setup:upgrade --keep-generated

โŒ Uninstallation

Run the following command to uninstall this module:

composer remove element119/layout-debug
php bin/magento module:enable Element119_LayoutDebug
php bin/magento setup:di:compile
php bin/magento static:content:deploy
php bin/magento setup:upgrade --keep-generated

โœ”๏ธ Features

This module...


๐Ÿ“š User Guide

...


ยฉ Kiel Pykett

layout-debug's People

Contributors

pykettk avatar

Stargazers

 avatar

Watchers

 avatar

layout-debug's Issues

Create Console Commands to Enable/Disable Functionality

Background

So long as this module is enabled, it's functionality is active. Ideally, there should be a console command to allow the enabling and disabling of it's functionality instead.

User-Acceptance Criteria

  • The module's functionality can be enabled using the dev:layout-debug:enable command
  • The module's functionality can be disabled using the dev:layout-debug:disable command
  • Other existing functionality is not affected

Prettify XML Output

Background

At present the XML that is logged to var/log/layout.log is displayed as a single string. Although this can be prettified manually, it would be nicer to have this behaviour by default.

User-Acceptance Criteria

  • The XML content logged to var/log/layout.log is prettified (i.e. printed as XML)
    • Example:
     <layout>
     	<head>
     		...
     	</head>
     	<body>
     		...
     	<body>
     	<update>
     		...
     	</update>
     </layout>
  • Other existing functionality is not affected

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.