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

Procedural File: debug.php

Source Location: /sources/debug.php

Page Details

PHP_Debug : A simple and fast way to debug PHP code

This PHP debug libray offers you the ability to debug your PHP code

  • PHP Pear integration
  • Process time
  • Database and query process time
  • Dump of all type of variable in a graphical way
  • Functionnal debug
  • Debug queries
  • 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 info
  • ... ( see doc for complete specification )
PHP versions 4 and 5

LICENSE: This source file is subject to version 3.0 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_0.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.

See:  Pear::Var_Dump, Pear::SQL_Parser
Since:  1.0BETA
Todo:  Check TODO file or https://sourceforge.net/tracker/?group_id=95715
Filesource:  Source Code for this file
Link:  http://www.php-debug.com
Link:  http://phpdebug.sourceforge.net
Copyright:  2003-2005 Vernet Loic
License:  PHP License 3.0
Version:  1.1.0
Author:  Loic Vernet, COil <qrf_coil@yahoo.fr>
Includes
include_once ('SQL/Parser.php') [line 78]

Include Pear::SQL_Parser Library

[ Top ]

include_once ('Var_Dump.php') [line 73]

Include Pear::Var_Dump Library

[ Top ]

include_once ('PEAR.php') [line 68]

Include Pear Library

[ Top ]


Constants
CR  [line 91]

CR = "\r\n"

[ Top ]

DBGLINE_ANY  [line 1544]

DBGLINE_ANY =

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 : 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
  • DBGLINE_SQLPARSE : Debug SQL Parse error


[ Top ]

DBGLINE_APPERROR  [line 1550]

DBGLINE_APPERROR = 6

[ Top ]

DBGLINE_ARRAY  [line 1557]

DBGLINE_ARRAY = 13

[ Top ]

DBGLINE_CREDITS  [line 1551]

DBGLINE_CREDITS = 7

[ Top ]

DBGLINE_CURRENTFILE  [line 1549]

DBGLINE_CURRENTFILE = 5

[ Top ]

DBGLINE_DEFAULT  [line 1559]

DBGLINE_DEFAULT = DBGLINE_STD

[ Top ]

DBGLINE_ENV  [line 1548]

DBGLINE_ENV = 4

[ Top ]

DBGLINE_ERRORALERT  [line 1564]

DBGLINE_ERRORALERT = "/!\\"

DBGLINE_ERRORALERT, default error message for DBGLINE_APPERROR debug line type


[ Top ]

DBGLINE_OBJECT  [line 1553]

DBGLINE_OBJECT = 9

[ Top ]

DBGLINE_PAGEACTION  [line 1556]

DBGLINE_PAGEACTION = 12

[ Top ]

DBGLINE_PROCESSPERF  [line 1554]

DBGLINE_PROCESSPERF = 10

[ Top ]

DBGLINE_QUERY  [line 1546]

DBGLINE_QUERY = 2

[ Top ]

DBGLINE_QUERY_REL  [line 1547]

DBGLINE_QUERY_REL = 3

[ Top ]

DBGLINE_SEARCH  [line 1552]

DBGLINE_SEARCH = 8

[ Top ]

DBGLINE_SQLPARSE  [line 1558]

DBGLINE_SQLPARSE = 14

[ Top ]

DBGLINE_STD  [line 1545]

DBGLINE_STD = 1

[ Top ]

DBGLINE_TEMPLATES  [line 1555]

DBGLINE_TEMPLATES = 11

[ Top ]

DBG_CREDITS  [line 115]

DBG_CREDITS = '== PHP_Debug ['.DBG_RELEASE.'] | By COil (2005) | '.'<a href="mailto:qrf_coil@yahoo.fr">qrf_coil@yahoo.fr</a> | '.'<a href="http://phpdebug.sourceforge.net/">PHP_Debug Project Home</a>'

This is a constant for the credits. For me :p


[ Top ]

DBG_GLOBAL_COOKIE  [line 138]

DBG_GLOBAL_COOKIE = 3

[ Top ]

DBG_GLOBAL_FILES  [line 137]

DBG_GLOBAL_FILES = 2

[ Top ]

DBG_GLOBAL_GET  [line 135]

DBG_GLOBAL_GET =

These are constants to define Super array environment variables


[ Top ]

DBG_GLOBAL_GLOBALS  [line 141]

DBG_GLOBAL_GLOBALS = 6

[ Top ]

DBG_GLOBAL_POST  [line 136]

DBG_GLOBAL_POST = 1

[ Top ]

DBG_GLOBAL_REQUEST  [line 139]

DBG_GLOBAL_REQUEST = 4

[ Top ]

DBG_GLOBAL_SESSION  [line 140]

DBG_GLOBAL_SESSION = 5

[ Top ]

DBG_MODE_AUTO  [line 109]

DBG_MODE_AUTO = 5

[ Top ]

DBG_MODE_DEFAULT  [line 110]

DBG_MODE_DEFAULT = DBG_MODE_QUERYTEMP

[ Top ]

DBG_MODE_FULL  [line 108]

DBG_MODE_FULL = 4

[ Top ]

DBG_MODE_OFF  [line 104]

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


[ Top ]

DBG_MODE_QUERY  [line 106]

DBG_MODE_QUERY = 2

[ Top ]

DBG_MODE_QUERYTEMP  [line 107]

DBG_MODE_QUERYTEMP = 3

[ Top ]

DBG_MODE_USERPERF  [line 105]

DBG_MODE_USERPERF = 1

[ Top ]

DBG_RELEASE  [line 56]

DBG_RELEASE = 'V1.1.0'

[ Top ]

DBG_VERSION  [line 55]

DBG_VERSION = DBG_VERSION_STANDALONE

[ Top ]

DBG_VERSION_DEFAULT  [line 54]

DBG_VERSION_DEFAULT = DBG_VERSION_STANDALONE

[ Top ]

DBG_VERSION_PEAR  [line 53]

DBG_VERSION_PEAR = 1

[ Top ]

DBG_VERSION_STANDALONE  [line 52]

DBG_VERSION_STANDALONE =

Possible version of class Debug


[ Top ]

DEBUGLINE_BOLD_CLOSE  [line 1569]

DEBUGLINE_BOLD_CLOSE =

DBGLINE_BOLD, constants for bold status function


[ Top ]

DEBUGLINE_BOLD_OPEN  [line 1570]

DEBUGLINE_BOLD_OPEN = 1

[ Top ]

DUMP_ARR_DISP  [line 127]

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 130]

DUMP_ARR_OBJNAME = 'Object'

[ Top ]

DUMP_ARR_STR  [line 128]

DUMP_ARR_STR = 2

[ Top ]

DUMP_ARR_TABNAME  [line 129]

DUMP_ARR_TABNAME = 'Array'

[ Top ]

STR_N  [line 88]

STR_N = ""

Eventual external constants


[ Top ]



Documentation generated on Sun, 12 Jun 2005 14:52:13 +0200 by phpDocumentor 1.3.0RC3