PHP code example of toastnz / silverstripe-debugbar

1. Go to this page and download the library: Download toastnz/silverstripe-debugbar library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

toastnz / silverstripe-debugbar example snippets


d($myvar, $myothervar);

d($myDataList->sql());

l('My message');

putenv('DEBUGBAR_DISABLE=true');

protected function init()
{
    parent::init();
    Requirements::javascript('framework/thirdparty/jquery/jquery.min.js');
}
yaml
---
Name: mysitedebugbar
---
LeKoala\DebugBar\DebugBar:
  enabled_in_admin: false
  query_limit: 500