pebugger

pebugger is an interactive command-line based debugger for PHP, written in PHP.
Download

pebugger Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Ste
  • Publisher web site:

pebugger Tags


pebugger Description

pebugger is an interactive command-line based debugger for PHP, written in PHP. pebugger is andia.com/screenshots//ico/pebugger.gifPpebugger is an interactive command-line based debugger for PHP, written in PHPP, written in PHP. The project vaguely resembles gdb. Its basicaly a dbgp client.This is currently in an early development stage. It's stable and usable, but not fully featured, yet. It's something I am keen to start using myself, so features should be added fairly quickly.So far, you can set breakpoints, step through code, and query variables.Requirements:· PHP 5· Xdebug· readline· CLI support in PHP (it's enabled by default)Installation:Xdebug:Install Xdebug by doing: pecl install xdebugFor more info: http://www.xdebug.orgDon't forget to add something like: zend_extension=xdebug.soto your php.ini and also check the output of phpinfo() if it mentions Xdebug.Have a look at http://www.xdebug.org/docs/remote on how to get Xdebug to connect to pebugger.Readline Extension:If you want bash-like line editing, tab-completion and command history, thenthe readline extension has to be enabled, which is not by default. This isn'tavailable for Windows.To do this, recompile PHP with either '--with-readline' or'--with-readline=shared' added to the ./configure command. So, a good ideawould be to see what options you previously compiled PHP with by doing: php -r 'phpinfo();' | grep 'Configure Command'and add your --with-readline option to the list.It might be worth having a look in /usr/lib/php for 'readline.so' beforedoing this, just incase you already have it. If so, just enable it in yourphp.iniSee also: http://www.php.net/manual/en/ref.readline.phpIf you will be debugging remotely, then just xdebug must be installed on the'server', and readline installed only on the system pebugger is to be ran on.Installing pebugger:Just copy it to wherever you want (say, /usr/local/share/pebugger)then do something like:ln -s /usr/local/share/pebugger/pebugger.php /usr/local/bin/pebuggerMake sure the first line of pebugger.php points to where your php is.Default is /usr/bin/phpType 'pebugger' to go!What's guration.· Accept connections only from certain hosts or ide keys: 'set accept/idekey'· Can now start scripts from the debugger: the 'start' command. For now, this depends on the 'nohup' unix command.· 'eval' command; evaluate some php code, on the server.· 'alias' command.


pebugger Related Software