PHP_Debug
[ class tree: PHP_Debug ] [ index: PHP_Debug ] [ all elements ]

Procedural File: debug.php

Source Location: /sources/debug.php



Classes:



Page Details:

+--------------------------------------------------------------------------+

+-- PHP_Debug : A simple and fast way to debug PHP code | +-- | +-- Support : Vernet Loic (coil@strangebuzz.com) | +--------------------------------------------------------------------------+ | | | This PHP debug libray offers you the ability to debug your PHP code | | | | - Pear integration | | - PHP Process time | | - Database and query process time | | - Dump of all type of variable in a graphical way | | - Functionnal debug | | - Debug queries | | - Show number of database queries executed | | - Allow to search in all debug infos | | - Direct links to test queries in Phpmyadmin | | - Show globals var ( $GLOBALS, $_POST, $_GET ... ) | | - Enable or disable the debug infos you want to see | | - Check performance of chunk of php code | | - Customize the general display of your debug | | - ... ( see doc for complete specification ) | +--------------------------------------------------------------------------+




Tags:

example:  Full example
todo:  Check TODO file or https://sourceforge.net/tracker/?group_id=95715
example:  Minimal example
license:  The PHP License, version 2.02
author:  Loic Vernet, COil <mailto:coil@strangebuzz.com>
filesource:  Source Code for this file


Includes:

require_once('PEAR.php') [line 53]
Include Pear Library

require_once('Var_Dump.php') [line 58]
Include Pear::Var_Dump Library






CR [line 69]

CR = "\r\n"

[ Top ]



DBGLINE_APPERROR [line 1076]

DBGLINE_APPERROR = 6

[ Top ]



DBGLINE_ARRAY [line 1083]

DBGLINE_ARRAY = 13

[ Top ]



DBGLINE_CREDITS [line 1077]

DBGLINE_CREDITS = 7

[ Top ]



DBGLINE_CURRENTFILE [line 1075]

DBGLINE_CURRENTFILE = 5

[ Top ]



DBGLINE_DEFAULT [line 1084]

DBGLINE_DEFAULT = DBGLINE_STD

[ Top ]



DBGLINE_ENV [line 1074]

DBGLINE_ENV = 4

[ Top ]



DBGLINE_ERRORALERT [line 1090]

DBGLINE_ERRORALERT = "/!\\"
DBGLINE_ERRORALERT, default error message for DBGLINE_APPERROR debug line type.


[ Top ]



DBGLINE_OBJECT [line 1079]

DBGLINE_OBJECT = 9

[ Top ]



DBGLINE_PAGEACTION [line 1082]

DBGLINE_PAGEACTION = 12

[ Top ]



DBGLINE_PROCESSPERF [line 1080]

DBGLINE_PROCESSPERF = 10

[ Top ]



DBGLINE_QUERY [line 1072]

DBGLINE_QUERY = 2

[ Top ]



DBGLINE_QUERY_REL [line 1073]

DBGLINE_QUERY_REL = 3

[ Top ]



DBGLINE_SEARCH [line 1078]

DBGLINE_SEARCH = 8

[ Top ]



DBGLINE_STD [line 1071]

DBGLINE_STD = 1
DEBUG LINE Types

  • DBGLINE_STD : Standart debug, fonctionnal or other
  • DBGLINE_QUERY : Query debug
  • DBGLINE_QUERY_REL : Database related debug
  • DBGLINE_ENV : Environment debug ( $GLOBALS... )
  • DBGLINE_CURRENTFILE : Output current file that is debugged
  • DBGLINE_APPERROR : Debug Error
  • DBGLINE_CREDITS : Class Credits
  • DBGLINE_SEARCH : Search mode in debug
  • DBGLINE_OBJECT : Debug object mode
  • DBGLINE_PROCESSPERF : Performance analysys
  • DBGLINE_TEMPLATES : Debug included templates
  • DBGLINE_PAGEACTION : Debug main page action
  • DBGLINE_ARRAY : Debug array mode



[ Top ]



DBGLINE_TEMPLATES [line 1081]

DBGLINE_TEMPLATES = 11

[ Top ]



DBG_CREDITS [line 94]

DBG_CREDITS = '<b>== PHP_Debug | By COil (2003) | <a href="mailto:coil@strangebuzz.com">coil@strangebuzz.com</a></b> | <a href="http://sourceforge.net/projects/phpdebug/">PHP_Debug Project Home</a>'
This is a constant for the credits. For me :p


[ Top ]



DBG_GLOBAL_COOKIE [line 115]

DBG_GLOBAL_COOKIE = 3

[ Top ]



DBG_GLOBAL_FILES [line 114]

DBG_GLOBAL_FILES = 2

[ Top ]



DBG_GLOBAL_GET [line 112]

DBG_GLOBAL_GET =
These are constants to define environment Super array


[ Top ]



DBG_GLOBAL_GLOBALS [line 118]

DBG_GLOBAL_GLOBALS = 6

[ Top ]



DBG_GLOBAL_POST [line 113]

DBG_GLOBAL_POST = 1

[ Top ]



DBG_GLOBAL_REQUEST [line 116]

DBG_GLOBAL_REQUEST = 4

[ Top ]



DBG_GLOBAL_SESSION [line 117]

DBG_GLOBAL_SESSION = 5

[ Top ]



DBG_MODE_AUTO [line 88]

DBG_MODE_AUTO = 5

[ Top ]



DBG_MODE_DEFAULT [line 89]

DBG_MODE_DEFAULT = DBG_MODE_USERPERF

[ Top ]



DBG_MODE_FULL [line 87]

DBG_MODE_FULL = 4

[ Top ]



DBG_MODE_OFF [line 83]

DBG_MODE_OFF =
DBG_MODE Constants, define the different available debug modes.

Here are the available modes :

  • DBG_MODE_OFF : Debug mode is OFF
  • DBG_MODE_USERPERF : Base debug mode,
  • DBG_MODE_QUERY : DBG_MODE_USERPERF + queries
  • DBG_MODE_QUERYTEMP : DBG_MODE_QUERY + included files
  • DBG_MODE_FULL : All available debug infos ( including $GLOBALS array that is quiet big )
  • DBG_MODE_AUTO : Mode auto take the mode of Debug Object
( not implemented )



[ Top ]



DBG_MODE_QUERY [line 85]

DBG_MODE_QUERY = 2

[ Top ]



DBG_MODE_QUERYTEMP [line 86]

DBG_MODE_QUERYTEMP = 3

[ Top ]



DBG_MODE_USERPERF [line 84]

DBG_MODE_USERPERF = 1

[ Top ]



DBG_RELEASE [line 43]

DBG_RELEASE = 'BETA 1.0'

[ Top ]



DBG_VERSION [line 42]

DBG_VERSION = DBG_VERSION_STANDALONE

[ Top ]



DBG_VERSION_DEFAULT [line 41]

DBG_VERSION_DEFAULT = DBG_VERSION_STANDALONE

[ Top ]



DBG_VERSION_PEAR [line 40]

DBG_VERSION_PEAR = 1

[ Top ]



DBG_VERSION_STANDALONE [line 39]

DBG_VERSION_STANDALONE =
Possible version of class Debug


[ Top ]



DUMP_ARR_DISP [line 104]

DUMP_ARR_DISP = 1
These are constant for DumpArr() and DumpObj() functions.

  • DUMP_ARR_DISP : Tell the functions to display the debug info.
  • DUMP_ARR_STR : Tell the fonction to return the debug info as a string
  • DBG_ARR_TABNAME : Default name of Array
  • DBG_ARR_OBJNAME : Default name of Object



[ Top ]



DUMP_ARR_OBJNAME [line 107]

DUMP_ARR_OBJNAME = 'Object'

[ Top ]



DUMP_ARR_STR [line 105]

DUMP_ARR_STR = 2

[ Top ]



DUMP_ARR_TABNAME [line 106]

DUMP_ARR_TABNAME = 'Array'

[ Top ]



STR_N [line 66]

STR_N = ''
Eventual external constants


[ Top ]




Documentation generated on Mon, 15 Dec 2003 18:46:42 +0100 by phpDocumentor 1.2.3