0

Debug Opencart3

Opencart3 is using template engine Twig. By default, debug mode is disabled. Is very simple to enable it - in the file system/library/template/Twig/Environment.php param 'debug' turn to true and add the string below 

$this->addExtension(new Twig_Extension_Debug());

Now, you can use constructions like this in templates:

{{ debug(var) }}