summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--auto_prepend.php3
-rw-r--r--it_debug.class4
2 files changed, 6 insertions, 1 deletions
diff --git a/auto_prepend.php b/auto_prepend.php
index da31810..c1871f2 100644
--- a/auto_prepend.php
+++ b/auto_prepend.php
@@ -56,7 +56,8 @@ function ED()
}
/**
- * Same as ED(), but first argument is string that must be in $_REQUEST['debug']
+ * Same as ED(), but if first argument is foo then $GLOBALS['debug_foo'] must be set for output
+ * @return boolean indicating whether $GLOBALS['debug_foo'] was set
*/
function EDC()
{
diff --git a/it_debug.class b/it_debug.class
index 5069185..e654851 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -127,6 +127,10 @@ function dump($args)
return "$r\n";
}
+/**
+ * Print short stackdump
+ * @param $skip number of stack levels to omip
+ */
function backtrace($skip = 0)
{
$result = array();