diff --git a/view/ViewableData.php b/view/ViewableData.php index 70b29134f..93fcd88b0 100644 --- a/view/ViewableData.php +++ b/view/ViewableData.php @@ -700,7 +700,14 @@ class ViewableData_Debugger extends ViewableData { $this->object = $object; parent::__construct(); } - + + /** + * @return string The rendered debugger + */ + public function __toString() { + return $this->forTemplate(); + } + /** * Return debugging information, as XHTML. If a field name is passed, it will show debugging information on that * field, otherwise it will show information on all methods and fields.