<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Instrumenting The Code</title><link>https://sourceforge.net/p/debugobject/wiki/Instrumenting%2520The%2520Code/</link><description>Recent changes to Instrumenting The Code</description><atom:link href="https://sourceforge.net/p/debugobject/wiki/Instrumenting%20The%20Code/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 04 Oct 2012 20:50:23 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/debugobject/wiki/Instrumenting%20The%20Code/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Instrumenting The Code modified by John Schlick</title><link>https://sourceforge.net/p/debugobject/wiki/Instrumenting%2520The%2520Code/</link><description>&lt;pre&gt;--- v4
+++ v5
@@ -5,6 +5,8 @@
 &lt;b&gt;$debug_object-&gt;debug_log_entry($level)&lt;/b&gt;
 &lt;b&gt;$debug_object-&gt;execute_debug($level)&lt;/b&gt;
 &lt;b&gt;$debug_object-&gt;debug_output($variable\[, $list\])&lt;/b&gt;
+
+Bonus: $debug_object-&gt;_debug_output($variable\[, $list\])
 
 NOTE: all calls take $level either as an integer or as a comma separated list of levels("2,0,-4") or as "*" which matches ALL levels.
 
@@ -48,3 +50,6 @@
 Sometimes it's desired to have output HAVE the same format as the rest of the debug output in a log - prepended with the file and routine name for example.
 This routine will do that for you, except it ALWAYS runs.
 I have found it usefull in "catch" blocks for example.
+
+&lt;b&gt;Bonus: $debug_object-&gt;_debug_output($variable\[, $list\])&lt;/b&gt;
+This is a very nice structured output routine that can dump any given list of variables, including arrays or object to the selected output (error_log - or echoed to the screen)  I like it more than var_dump
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Schlick</dc:creator><pubDate>Thu, 04 Oct 2012 20:50:23 -0000</pubDate><guid>https://sourceforge.netc525004cda4be956af861900785ac595321d5460</guid></item><item><title>WikiPage Instrumenting The Code modified by John Schlick</title><link>https://sourceforge.net/p/debugobject/wiki/Instrumenting%2520The%2520Code/</link><description>&lt;pre&gt;--- v3
+++ v4
@@ -1,16 +1,22 @@
 Instrumenting The Code.
 ===
 There are four main routines that you can use to instrument your codebase.
-$debug_object-&gt;debug_log($level, $variable[, $list])
-$debug_object-&gt;debug_log_entry($level)
-$debug_object-&gt;execute_debug($level)
-$debug_object-&gt;debug_output($variable[, $list])
+&lt;b&gt;$debug_object-&gt;debug_log($level, $variable\[, $list\])&lt;/b&gt;
+&lt;b&gt;$debug_object-&gt;debug_log_entry($level)&lt;/b&gt;
+&lt;b&gt;$debug_object-&gt;execute_debug($level)&lt;/b&gt;
+&lt;b&gt;$debug_object-&gt;debug_output($variable\[, $list\])&lt;/b&gt;
+
 NOTE: all calls take $level either as an integer or as a comma separated list of levels("2,0,-4") or as "*" which matches ALL levels.
+
 
 &lt;b&gt;$debug_object-&gt;debug_log($level, $variable\[, $list\]);&lt;/b&gt;
 This is the most used call.  Put it anywhere with variables or text that you want to see.
 an example:
+
+~~~~~
+:::php
 $debug_object-&gt;debug_log("3,-11", "after big loop, counter: ", $counter, $something, $array);
+~~~~~
 
 &lt;b&gt;$debug_object-&gt;debug_log_entry($level);&lt;/b&gt;
 This is a shortcut wrapper used on entry into a routine to show all of the variables that were used to call that routine.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Schlick</dc:creator><pubDate>Thu, 04 Oct 2012 17:09:42 -0000</pubDate><guid>https://sourceforge.net64670e0e56bec927d08162d5880bb5035ccbe45b</guid></item><item><title>WikiPage Instrumenting The Code modified by John Schlick</title><link>https://sourceforge.net/p/debugobject/wiki/Instrumenting%2520The%2520Code/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -7,31 +7,38 @@
 $debug_object-&gt;debug_output($variable[, $list])
 NOTE: all calls take $level either as an integer or as a comma separated list of levels("2,0,-4") or as "*" which matches ALL levels.
 
-$debug_object-&gt;debug_log($level, $variable[, $list]);
+&lt;b&gt;$debug_object-&gt;debug_log($level, $variable\[, $list\]);&lt;/b&gt;
 This is the most used call.  Put it anywhere with variables or text that you want to see.
 an example:
 $debug_object-&gt;debug_log("3,-11", "after big loop, counter: ", $counter, $something, $array);
 
-$debug_object-&gt;debug_log_entry($level);
+&lt;b&gt;$debug_object-&gt;debug_log_entry($level);&lt;/b&gt;
 This is a shortcut wrapper used on entry into a routine to show all of the variables that were used to call that routine.
 AS an example:
+
+~~~~~
+:::PHP
 global $debug_object;
 $debug_object-&gt;debug_log_entry(1);
+~~~~~
 are quite often the first 2 lines of every function that I write.
 
-$debug_object-&gt;execute_debug($level)
+&lt;b&gt;$debug_object-&gt;execute_debug($level)&lt;/b&gt;
 Gives direct access to the decision as to whether debug is turned on or not.
 This call returns a boolean, so it can be placed inside of an if statement, and if debug is on then that code is executed.
 
+~~~~~
+:::php
 if ($debug_object-&gt;execute_debug(2))
 {
 	// some code here that only gets executed if debug level 2 or higher is on for this routine.
 	$x = 5; // Yes, REAL complex code can go here, this is just an example).
 	echo "results of that code above: " . $x;
 }
+~~~~~
 
 
-$debug_object-&gt;debug_output($variable[, $list])
+&lt;b&gt;$debug_object-&gt;debug_output($variable\[, $list\])&lt;/b&gt;
 Sometimes it's desired to have output HAVE the same format as the rest of the debug output in a log - prepended with the file and routine name for example.
 This routine will do that for you, except it ALWAYS runs.
 I have found it usefull in "catch" blocks for example.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Schlick</dc:creator><pubDate>Thu, 04 Oct 2012 17:07:19 -0000</pubDate><guid>https://sourceforge.netb36801b1dc540f687b3bc2407ae105e4057e6e7c</guid></item><item><title>WikiPage Instrumenting The Code modified by John Schlick</title><link>https://sourceforge.net/p/debugobject/wiki/Instrumenting%2520The%2520Code/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -1,2 +1,37 @@
 Instrumenting The Code.
 ===
+There are four main routines that you can use to instrument your codebase.
+$debug_object-&gt;debug_log($level, $variable[, $list])
+$debug_object-&gt;debug_log_entry($level)
+$debug_object-&gt;execute_debug($level)
+$debug_object-&gt;debug_output($variable[, $list])
+NOTE: all calls take $level either as an integer or as a comma separated list of levels("2,0,-4") or as "*" which matches ALL levels.
+
+$debug_object-&gt;debug_log($level, $variable[, $list]);
+This is the most used call.  Put it anywhere with variables or text that you want to see.
+an example:
+$debug_object-&gt;debug_log("3,-11", "after big loop, counter: ", $counter, $something, $array);
+
+$debug_object-&gt;debug_log_entry($level);
+This is a shortcut wrapper used on entry into a routine to show all of the variables that were used to call that routine.
+AS an example:
+global $debug_object;
+$debug_object-&gt;debug_log_entry(1);
+are quite often the first 2 lines of every function that I write.
+
+$debug_object-&gt;execute_debug($level)
+Gives direct access to the decision as to whether debug is turned on or not.
+This call returns a boolean, so it can be placed inside of an if statement, and if debug is on then that code is executed.
+
+if ($debug_object-&gt;execute_debug(2))
+{
+	// some code here that only gets executed if debug level 2 or higher is on for this routine.
+	$x = 5; // Yes, REAL complex code can go here, this is just an example).
+	echo "results of that code above: " . $x;
+}
+
+
+$debug_object-&gt;debug_output($variable[, $list])
+Sometimes it's desired to have output HAVE the same format as the rest of the debug output in a log - prepended with the file and routine name for example.
+This routine will do that for you, except it ALWAYS runs.
+I have found it usefull in "catch" blocks for example.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Schlick</dc:creator><pubDate>Tue, 02 Oct 2012 22:05:08 -0000</pubDate><guid>https://sourceforge.net672616a49e003c0beb78cfcb0058330de7b7c879</guid></item><item><title>WikiPage Instrumenting The Code modified by John Schlick</title><link>https://sourceforge.net/p/debugobject/wiki/Instrumenting%2520The%2520Code/</link><description>Instrumenting The Code.
===</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Schlick</dc:creator><pubDate>Tue, 02 Oct 2012 22:02:06 -0000</pubDate><guid>https://sourceforge.netc35deaf26002adb85e8133c48bafdae642265052</guid></item></channel></rss>