have to install Zend Debugger or XDebug Debugger.
//=== Zend Debugger Installation [ref: thierryb.net]:
UPDATE URL: http://downloads.zend.com/pdt
*** use "Help -> Install New Software"
instead of "Help -> Software Updates -> Find and Install"
* Zend Debugger Client:
php.ini modification to make Zend Debugger client work with Mysql(only for PDT installed on MS Windows?)
* Zend Debugger Server:
download "Studio Web Debugger" from http://www.zend.com/products/studio/downloads
//=== Examples for PDT debug setting using Zend Debugger:
//=== phpinfo
PHP Version 5.3.2-1ubuntu4.7
//=== extension_dir /usr/lib/php5/20090626+lfs
put the extracted ZendDebugger.so under the extension_dir
//=== php.ini edit (better back it up before editting)
sudo gedit /etc/php5/apache2/php.ini
set(or comment out) the following attributes:
* zend_debugger.allow_hosts
zend_debugger.allow_hosts=127.0.0.1/32, 192.168.0.0/16
; this is to see output while debugging
implicit_flush = On
* The output buffering functionality must be switched off to see debug output, too.
output_buffering = 0
[ Note: Remember that output buffering is necessary to allow you to send header (e.g. cookies) even after you sent body content.
Rrestore output_buffering to its original value when we get an error message like "Warning: Cannot modify header information - headers already sent",]
* Disable eAccelerator if it is installed and enabled:
eaccelerator.enable="0" (string or digit?)
* Disable the Xdebug extension by commenting out
;zend_extension=/usr/lib/php4/20020429/xdebug.so
* Disable DBG Debugger, too :
;extension=dbg.so
;extension=php_dbg.dll
* For linux, copy the following lines into the end of php.ini
[Zend]
zend_extension=/usr/lib/php5/20090626+lfs/ZendDebugger.so
zend_debugger.allow_hosts=<comma separated ip_addresses>
zend_debugger.expose_remotely=always
//=== restart web server
sudo /etc/init.d/apache2 restart
[ref]
http://www.thierryb.net/pdtwiki/index.php?title=Using_PDT_:_Installation_:_Installing_the_Zend_Debugger
https://bugs.eclipse.org/bugs/show_bug.cgi?id=269631
http://www.zend.com/en/community/pdt
http://downloads.zend.com/pdt
沒有留言:
張貼留言