Git Product home page Git Product logo

fdebug's Introduction

TYPO3 f:debug alternative

TYPO3 offers an f:debug ViewHelper to introspect variables. That ViewHelper is a small wrapper around DebuggerUtility of EXT:extbase.

The result of DebuggerUtility is always developer focused. f:debug on the other hand is used within Fluid and should be integrator focused.

This extension provides an alternative to existing f:debug which focuses on integrators.

Installation

Run composer req --dev werkraummedia/fdebug:^1.0.

Usage

1:1 the original f:debug, no need to change anything. The original ViewHelper is overloaded and not usable anymore.

The goal

Improve usage for integrators. E.g. show data they have access to within Fluid. Don't focus on properties, but actual available info. Inspect methods and public properties. Respect method names.

This should become part of TYPO3 core (by providing a patch) once it is stable enough. Right now it might lack features or break under some circumstances.

Please give it a try and open issues or provide pull requests.

Why an extension?

That allows for usage of ext_localconf.php to overload Fluid namespace f. Also it allows to easily share and update the current state and prevent inclusion into production systems.

Current features

Do not render protected or private properties. These are not available within Fluid.

Render methods which are public and start with get, has or is and don't need any arguments.

fdebug's People

Contributors

danielsiepmann avatar koritnik avatar

Stargazers

Matthias Vogel avatar

Watchers

 avatar Daniel Gohlke avatar Justus Moroni avatar

fdebug's Issues

Declaration must be compatible

But i get this error prompt: Fatal error: Declaration of WerkraumMedia\FDebug\ViewHelpers\DebugViewHelper::renderStatic(array $arguments, Closure $renderChildrenClosure, WerkraumMedia\FDebug\ViewHelpers\RenderingContextInterface $renderingContext) must be compatible with TYPO3\CMS\Fluid\ViewHelpers\DebugViewHelper::renderStatic(array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) in /opt/typo3/extensions/fdebug/Classes/ViewHelpers/DebugViewHelper.php on line 31
I use TYPO3 10.4.15, I installed your extension with git clone and then with the extension manager.

Source: https://typo3.slack.com/archives/C025BQLFA/p1620823834346700?thread_ts=1620751434.248900&cid=C025BQLFA

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.