Page 1 of 1

Debug panel

Posted: Mon Sep 28, 2020 8:41 am
by sticcino
2021
Display initially as collapsed

Re: Debug panel

Posted: Mon Oct 05, 2020 5:53 pm
by arbei
v2021.0.2 has added Config(""DEBUG_MESSAGE_TEMPLATE"), from the source, it is:

"DEBUG_MESSAGE_TEMPLATE" => '<div class="card card-danger ew-debug"><div class="card-header">' .
'<h3 class="card-title">%t</h3>' .
'<div class="card-tools"><button type="button" class="btn btn-tool" data-card-widget="collapse"><i class="fas fa-minus"></i></button></div>' .
'</div><div class="card-body">%s</div></div>'

You can now change the template as needed, e.g. in server side Global Code

$myDebugTemplate = '<div class="card card-danger ew-debug">......</div>' ;
Config(""DEBUG_MESSAGE_TEMPLATE", $myDebugTemplate);

Re: Debug panel

Posted: Tue Oct 06, 2020 8:37 pm
by Adam

Good point, just add this one line in the Global > All Pages > Page_Loading event:

Config('DEBUG_MESSAGE_TEMPLATE', str_replace(array('ew-debug', 'minus'), array('ew-debug collapsed-card', 'plus'), Config('DEBUG_MESSAGE_TEMPLATE')));

Re: Debug panel

Posted: Fri Oct 23, 2020 8:36 pm
by sticcino

works perfectly.

interestingly enough, unless I broke something with the prior code and its in my code somewhere ... added the 1 line CONFIG line above, now my pages displays the debug output... i was not able to see the debug data, just the processing time was appearing...

thanks