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

Source for file Debug.php

Documentation is available at Debug.php

  1. <?
  2. /**
  3. * The Debug file.
  4. * The debugger used in PhpEclipse
  5. *
  6. * @package base
  7. * @filesource
  8. * @see HTML_BASE_UTIL_PATH.'/Debug.php''
  9. * @see http://www.plog4u.org/index.php/Using_PHPEclipse_:_Installation_:_Installing_the_DBG_Debugger
  10. * @see http://www-128.ibm.com/developerworks/opensource/library/os-debug/
  11. * @see http://dd.cron.ru/dbg/downloads.php
  12. * @copyright (c) http://Finn-Rasmussen.com
  13. * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
  14. * @author http://Finn-Rasmussen.com
  15. * @version 1.9
  16. * @since 21-oct-2005
  17. */
  18.  
  19. /**
  20. * The required files
  21. */
  22.  
  23. /**
  24. * The Debug class is used together with the Eclipse to add support for remote debugging
  25. * Write: url?DBGSESSID=1@localhost:10001
  26. * <code>
  27. * Usage:
  28. * $debug = new Debug();
  29. * $debug->breakpoint();
  30. * Or
  31. * Debug::breakpoint();
  32. * </code>
  33. * @package base
  34. */
  35. class Debug {
  36. /**
  37. * Constructor
  38. */
  39. function Debug() {
  40. }
  41.  
  42. /**
  43. * used to stop in the debugger
  44. * @static
  45. */
  46. function breakpoint () {
  47. ob_flush();
  48. @flush(); // Ignore any info/wrn/errors
  49. sleep(.1);
  50. debugBreak();
  51. }
  52. }
  53. ?>

Documentation generated on Thu, 22 Dec 2005 17:05:38 +0100 by phpDocumentor 1.3.0RC3