diff --git a/classes/display/DisplayHandler.class.php b/classes/display/DisplayHandler.class.php
index 1edb959f2..4c3b3b5e5 100644
--- a/classes/display/DisplayHandler.class.php
+++ b/classes/display/DisplayHandler.class.php
@@ -176,16 +176,34 @@ class DisplayHandler extends Handler
{
case 'panel':
$data = Rhymix\Framework\Debug::getDebugData();
+ if ($data->entries)
+ {
+ foreach ($data->entries as &$entry)
+ {
+ if (is_scalar($entry->message))
+ {
+ $entry->message = var_export($entry->message, true);
+ }
+ else
+ {
+ $entry->message = trim(print_r($entry->message, true));
+ }
+ }
+ }
switch (Context::getResponseMethod())
{
case 'HTML':
$json_options = defined('JSON_PRETTY_PRINT') ? (JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) : 0;
- $panel_script = "";
+ $panel_script = sprintf('', RX_BASEURL, 'common/js/debug.js', filemtime(RX_BASEDIR . 'common/js/debug.js'));
+ $panel_script .= "\n";
$body_end_position = strrpos($output, '