debugging infrustructure and TODO added
[curl-de-sac.git] / web / Obj / curl-de-sac.phh
index 8c295bd..4ef3644 100644 (file)
@@ -33,6 +33,14 @@ class CDS_cmd {
         $this->cmd_cls = $cmd_cls;
         $this->ch = $ch;
     }
+
+    function dbg_get()
+    {
+        // NOTE: cmd_cls must be valid by definition
+        if ($this->cmd_cls->cds == NULL)
+            return -1;
+        return $this->cmd_cls->cds->dbg_get();
+    }
 }
 
 class CDS_cmd_cls {
@@ -105,6 +113,11 @@ class Curl_de_sac {
         $this->dbg = $dbg;
     }
 
+    function dbg_get()
+    {
+        return($this->dbg);
+    }
+
     function cmd_cls_register($cmd_cls)
     {
         if (get_class($cmd_cls) != 'CDS_cmd_cls' && is_subclass_of($cmd_cls, 'CDS_cmd_cls') == FALSE)