- <?
- /**
- * The Debug file.
- * The debugger used in PhpEclipse
- *
- * @package base
- * @filesource
- * @see HTML_BASE_UTIL_PATH.'/Debug.php''
- * @see http://www.plog4u.org/index.php/Using_PHPEclipse_:_Installation_:_Installing_the_DBG_Debugger
- * @see http://www-128.ibm.com/developerworks/opensource/library/os-debug/
- * @see http://dd.cron.ru/dbg/downloads.php
- * @copyright (c) http://Finn-Rasmussen.com
- * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
- * @author http://Finn-Rasmussen.com
- * @version 1.9
- * @since 21-oct-2005
- */
-
- /**
- * The required files
- */
-
- /**
- * The Debug class is used together with the Eclipse to add support for remote debugging
- * Write: url?DBGSESSID=1@localhost:10001
- * <code>
- * Usage:
- * $debug = new Debug();
- * $debug->breakpoint();
- * Or
- * Debug::breakpoint();
- * </code>
- * @package base
- */
- class Debug {
- /**
- * Constructor
- */
- function Debug() {
- }
-
- /**
- * used to stop in the debugger
- * @static
- */
- function breakpoint () {
- ob_flush();
- @flush(); // Ignore any info/wrn/errors
- sleep(.1);
- debugBreak();
- }
- }
- ?>