INSTALL
+-----------------------------------------------------------------------------+
+-- PHP_Debug : A simple and fast way to debug your PHP code |
+-- |
+-- Support : Vernet Loic (qrf_coil@yahoo.fr) |
+-----------------------------------------------------------------------------+
== INSTALLATION INSTRUCTIONS ==================================================
For this version Pear is not mandatory (see http://pear.php.net)
- Active manually Pear by setting
define ('DBG_VERSION' , DBG_VERSION_PEAR ); // line 55 in debug.php
- Pear Packages needed if Pear is activated :
- Var_Dump (http://pear.php.net/package/Var_Dump)
- SQL_Parser (http://pear.php.net/package/SQL_Parser)
- Include the class in your php file. ( "sources/debug.php" )
- Things to do in order that view source functionnality works :
1) Copy "sources/source.php" in a directory
2) Line 26 replace include by your path to "PHP_Highlight.php" located
in /includes
3) Then update the following variables of the debug object :
$Dbg->ViewSourceScriptPath = "YourPathToViewSourceScript";
// Default "."
$Dbg->ViewSourceScriptName = "NameOfViewSourceScript";
// Default "source.php"
- Things to do in order that direct links to PHPMyAdmin work :
1) Update the path of Phpmyadmyn and database name
$Dbg->PhpMyAdminUrl = "http://127.0.0.1/mysql";
// Default "http://127.0.0.1/mysql"
$Dbg->DatabaseName = "mysql";
// Default "mysql"
== MINIMAL SYNOPSIS : tests/debug_test_min.php ================================
<?php
include_once('debug.php');
$Dbg = & new Debug();
print("<h1>PHP_Debug :: Hello World !!</h1>");
$Dbg->addDebug("DEBUG INFO", DBGLINE_STD, __FILE__, __LINE__);
$Dbg->DebugDisplay();
?>
== FULL SYNOPSIS ==============================================================
see (tests/debug_test.php)
|