[commits] [Wiki] changed: Doc/Dev/DebugH4

Michael Slusarz slusarz at horde.org
Thu Aug 11 15:47:54 UTC 2011


slusarz  Thu, 11 Aug 2011 15:47:54 +0000

Modified page: http://wiki.horde.org/Doc/Dev/DebugH4
New Revision:  1.2
Change log:  More direct language re: not using debug_backtrace()

@@ -7,20 +7,13 @@
  <code type="php">
  Horde::debug($variable);
  </code>

-{{$variable}} is the variable you wish to debug.  The contents of  
this variable will be dumped into a file named {{horde_debug.txt}} in  
your temporary directory (generally set in {{horde/config/conf.php}}  
in the {{$conf['tmpdir']}} variable).
+{{$variable}} is the variable you wish to debug.  The contents of  
this variable will be dumped into a file named {{horde_debug.txt}} in  
your temporary directory (generally set in {{horde/config/conf.php}}  
in the {{$conf['tmpdir']}} variable).  ##red|$variable can NOT be  
debug_backtrace().##

  If you want to manually specify the location of the debug file, you  
can use the optional second parameter to Horde::debug():

  <code type="php">
  Horde::debug($variable, $filename);
  </code>

  {{$filename}} should be the full path to the filename.  If using  
{{$filename}}, make sure the directory/file is writable by the user  
the PHP process runs as.
-
-It's worth noting that the output will also include a  
debug_backtrace(), so trying something like:
-<code type="php">
-Horde::debug(debug_backtrace());
-</code>
-
-will likely cause issues.



More information about the commits mailing list