#102927Integrator-oriented optimization of the DebugViewHelper
Description
The current version of the DebugViewHelper sometimes causes confusion among integrators, as it does not provide all the information that can be used in Fluid.
For example, think of public getter methods without a class property such as FileReference::getProperties, usable via {yourFileRef.properties}.
The DebugViewHelper is currently only a wrapper around DebuggerUtility from EXT:extbase.
However, the result of DebuggerUtility is developer-oriented. DebugViewHelper, on the other hand, is used in Fluid and should be integrator-oriented.
A corresponding proof of concept has already been implemented by @layne.obserdia for TYPO3 11. It may be possible to implement a corresponding core feature on this basis.
Reviews 1
Related issues 1
Files 1
History 714
-
Daniel Siepmann commented <span data-processor="relativetime" data-value="2024-01-25T12:23:20+00:00" > 01/25/24, 12:23 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 84443 status
NewUnder Review <span data-processor="relativetime" data-value="2024-05-29T13:11:28+00:00" > 05/29/24, 13:11 </span> -
Gerrit Code Review pushed patch set 2 for main to change 84443 <span data-processor="relativetime" data-value="2024-05-29T13:17:13+00:00" > 05/29/24, 13:17 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 84443 <span data-processor="relativetime" data-value="2024-05-29T13:18:07+00:00" > 05/29/24, 13:18 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 84443 <span data-processor="relativetime" data-value="2024-05-29T14:21:14+00:00" > 05/29/24, 14:21 </span>
-
Garvin Hicking commented and changed attached Screenshot 2024-05-30 at 16.15.29.png <span data-processor="relativetime" data-value="2024-05-30T14:16:32+00:00" > 05/30/24, 14:16 </span>
Current state:
-
Gerrit Code Review pushed patch set 5 for main to change 84443 <span data-processor="relativetime" data-value="2024-05-30T14:22:31+00:00" > 05/30/24, 14:22 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 84443 <span data-processor="relativetime" data-value="2024-05-30T14:46:08+00:00" > 05/30/24, 14:46 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 84443 <span data-processor="relativetime" data-value="2024-05-30T14:56:49+00:00" > 05/30/24, 14:56 </span>
-
Garvin Hicking changed Related to #105113 <span data-processor="relativetime" data-value="2024-09-25T09:57:40+00:00" > 09/25/24, 09:57 </span>
-
Garvin Hicking commented and changed status
Under ReviewNeeds Feedback <span data-processor="relativetime" data-value="2024-09-25T09:58:53+00:00" > 09/25/24, 09:58 </span>I’ve only documented this in my abandoned patch so far, and want to repeat here what I just wrote in #105113:
Yes, this is a shortcoming of the internal debugger.
I can whole-heartedly recommend anyone to look into https://extensions.typo3.org/extension/includekrexx
This extension offers a powerful debugger that makes all these getters and properties fully accessible and searchible.
I initially wanted to enhance the core’s debugger, but this alternative is so powerful that I would feel ashamed to rebuild something which is already being well-maintained and fosters the TYPO3 extension ecosystem. I was not aware of it earlier, and maybe this helps in promoting it.
(You can use the extension with a require-dev dependency)
-
Eric Harrer commented <span data-processor="relativetime" data-value="2024-09-25T10:34:48+00:00" > 09/25/24, 10:34 </span>
I think the best solution is somewhere in between. The debugger you linked is very powerful and is certainly a good choice for power users/developers. On the other hand, the point here is that integrators (even those new to TYPO3 or without php programming experience) should be able to utilise the full potential of the information available in the context of a Fluid template they are working with, regardless of additional extensions. They may not be interested in what getters or setters are. They just want to know under which fluid path available information can be retrieved. I would like to see a DebugViewHelper in TYPO3 that takes exactly this essential aspect into account.
-
Tobias Gülzow commented <span data-processor="relativetime" data-value="2024-09-26T08:20:11+00:00" > 09/26/24, 08:20 </span>
Hi everyone.
The linked debugger offers “code generation” to the values of the getter. You just have to copy/pasta it into the template file.
But I do see your point. Getters and public properties are the same from the perspective of an integrator.Thanks for your feedback, this is very helpful.
Tobi
-
Georg Ringer commented and changed status
Needs FeedbackRejected <span data-processor="relativetime" data-value="2026-10-02T06:38:10+00:00" > 10/02/26, 06:38 </span>hey,
there have been various discussions without real decissions and as there is an extension to use
kreXXI am closing this issue.
The POC is available at: https://github.com/werkraum-media/fdebug
It is basically a copy of the debugger with adjustments. The idea was to play around and find a working way and see whether this will work out.
E.g. it needs to resolve all data in order to render. That could trigger side effects, etc.
But it worked so far in 10 and 11. I don’t have an idea how this should be integrated into the Core. I guess the existing class needs a huge refactoring in order to use it in different contexts.