Child pages
  • [composer] Use Symfony's VarDumper for Template Parser debugging
Skip to end of metadata
Go to start of metadata

Sometimes within m_DefineElement it's impossible to guess names of available parameters and their current values. To ease the process <inp2:m_PrintCurrentParams/> tag can be used, which will output value of each parameter, that is available in current element, e.g.

param1 = value1
param2 = value2

Unfortunately above mentioned tag fails to render parameter values correctly, when they are not mere text or numbers, but are objects.


Recently I've found new Symfony's VarDumper component (see, which is created to deal with that specific problem. It not only uses colors to distinguish each parameter data type, but also can expand/collapse complex data structures if any is present in parameter value.


Related Tasks

1 Comment