I am working some modifications for a OJS 3.1 journal through the develop of a Child Theme. In some cases I have to send custom data to some templates. I have read the PKP Theming Guide. However I have searched in this forum about "How to debug code, or print messages to console or log file, so you can make sure that your code is doing what you expect. ", but I have found nothing about it. That’s the why I ask about it.