]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/DebugHtml.php
document how to extract subset of TIGER data needed for API tests
[nominatim.git] / lib / DebugHtml.php
index ff1724d2a61a76ec6f674fedeb456f1c6feba19d..98da8794055c644e23fbb90ffdbbc6d3d5b45f8e 100644 (file)
@@ -153,6 +153,10 @@ class Debug
                     $sPre = ', ';
                 }
             }
+        } elseif (is_object($mVar) && method_exists($mVar, 'debugInfo')) {
+            Debug::outputVar($mVar->debugInfo(), $sPreNL);
+        } elseif (is_a($mVar, 'stdClass')) {
+            Debug::outputVar(json_decode(json_encode($mVar), true), $sPreNL);
         } else {
             Debug::outputSimpleVar($mVar);
         }