I am trying to debug some code and thought it might be a good idea to install a debugbar to make it easier for developers to analyse the code :
To install it I have to :
'DebugBar is very easy to use and you can add it to any of your projects in no time. The easiest way is using the render()
functions'
<?php use DebugBar\StandardDebugBar; $debugbar = new StandardDebugBar(); $debugbarRenderer = $debugbar->getJavascriptRenderer(); $debugbar["messages"]->addMessage("hello world!"); ?> <html> <head> <?php echo $debugbarRenderer->renderHead() ?> </head> <body> ... <?php echo $debugbarRenderer->render() ?> </body> </html>
Where should I put the render functions in Moodle so it appears on all pages?