File/midcom/debug.php

Description
Classes
Class Description
 class midcom_debug This is a debugger class.
Variables
midcom_debug $GLOBALS["midcom_debugger"] (line 293)

Global debugger instance

Functions
debug_add (line 301)

Shortcut: Log a message

void debug_add (string $message, [int $loglevel = MIDCOM_LOG_DEBUG])
  • string $message: The message to be logged
  • int $loglevel: The log level
debug_dump_mem (line 336)

Shortcut: Dump the current memory usage and the delta to the last call of this function.

void debug_dump_mem (string $message, [int $loglevel = MIDCOM_LOG_DEBUG])
  • string $message: The message to be logged
  • int $loglevel: The log level
debug_pop (line 373)

Shortcut: Restore the last debug prefix

void debug_pop ()
debug_print_r (line 313)

Shortcut: Dump a variable (by reference)

void debug_print_r (string $message, mixed &$variable, [int $loglevel = MIDCOM_LOG_DEBUG])
  • string $message: The message to be logged
  • mixed $variable: The variable to be logged
  • int $loglevel: The log level
debug_print_type (line 325)

Shortcut: Dump a variables type (by reference)

void debug_print_type (string $message, mixed &$variable, [int $loglevel = MIDCOM_LOG_DEBUG])
  • string $message: The message to be logged
  • mixed $variable: The variable of which the type should be logged
  • int $loglevel: The log level
debug_push (line 346)

Shortcut: Set a new debug prefix

void debug_push (string $prefix)
  • string $prefix: The new prefix
debug_push_class (line 358)

Shortcut for adding a class/method debug prefix, the class name is obtained from the first parameter, the prefix is appended using ::$prefix notation.

void debug_push_class (object $object, string $prefix)
  • object $object: The object whose class name should be used.
  • string $prefix: The prefix to append to the class name.

Documentation generated on Mon, 21 Nov 2005 18:14:47 +0100 by phpDocumentor 1.3.0RC3