I have several questions regarding this issue:
On other parts of Joomla, I can use
var_dumpto output variable to debug, but in some events like
var_dumpwon't work. I kind of know what's going on, but can someone explain to me the details of why it won't work? Is it related to "output buffer"? If the result of
var_dumpdoesn't show on screen, where does it go?
var_dumpdoesn't work, I am using another way to see the variables in the
This proves to be working in most situations, the JSON string of
$something will show on screen and I can copy it to some online json decoder to have a better view of the variable, as most of the variables I am trying to see are objects. But json_encode can't get the object's private properties and methods. Is there a better way (for example using Joomla's own debug system) to get a tree view of the variables? I read some documentation of JDebug, but couldn't figure out how to easily get a tree view of object variables.