2021
Display initially as collapsed
Debug panel
-
- User
- Posts: 9419
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);
"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);
-
- User
- Posts: 1043
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