1<?php
2use DebugBar\StandardDebugBar;
3
4$debugbar = new StandardDebugBar();
5$debugbarRenderer = $debugbar->getJavascriptRenderer();
6
7$debugbar["messages"]->addMessage("hello world!");
8?>
9<html>
10 <head>
11 <?php echo $debugbarRenderer->renderHead() ?>
12 </head>
13 <body>
14 ...
15 <?php echo $debugbarRenderer->render() ?>
16 </body>
17</html>