PhpDebugger: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 1: | Zeile 1: | ||
== XDebug == | |||
=== Installation === | |||
<pre>apt-get install php-xdebug | |||
</pre> | |||
* /etc/php5/fpm/php.ini | |||
<pre>[xdebug] | |||
zend_extension="/usr/lib/php5/20131226/xdebug.so" | |||
xdebug.remote_port=9000 | |||
xdebug.remote_enable=On | |||
xdebug.remote_connect_back=On | |||
xdebug.remote_log=/var/log/xdebug.log | |||
</pre> | |||
* gelöscht: /etc/php5/fpm/conf.d/20-xdebug.ini, sonst "Module 'xdebug' already loaded in Unknown on line 0" | |||
* Exlipse: Debug Configuration: | |||
** Server Debugger: XDebug <nowiki>[Configure]</nowiki>: Port: 9001 | |||
== Installation Zend-Server == | == Installation Zend-Server == | ||
* in Profile einfügen: | * in Profile einfügen: |
Version vom 12. Juli 2015, 06:48 Uhr
XDebug
Installation
apt-get install php-xdebug
- /etc/php5/fpm/php.ini
[xdebug] zend_extension="/usr/lib/php5/20131226/xdebug.so" xdebug.remote_port=9000 xdebug.remote_enable=On xdebug.remote_connect_back=On xdebug.remote_log=/var/log/xdebug.log
- gelöscht: /etc/php5/fpm/conf.d/20-xdebug.ini, sonst "Module 'xdebug' already loaded in Unknown on line 0"
- Exlipse: Debug Configuration:
- Server Debugger: XDebug [Configure]: Port: 9001
Installation Zend-Server
- in Profile einfügen:
PATH=$PATH:/usr/local/zend/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib
apt-get install php-5.3-extra-extensions-zend-server
Installation Zend Debugger
- [Anleitung]
- [Anleitung2]
- Zend Studio herunterladen und installieren
cd $DOCUMENT_ROOT cp /usr/local/zend/share/dist/dummy.php .
Eclipse-Einstellungen
PHP Script Debugging
- Preferences - PHP - PHP-Executables
- Name: php5
- Executable path: /usr/local/zend/bin/php
- PHP ini file: /usr/local/zend/etc/php.ini
- SAPI Type: CGI
- PHP debugger: Zend Debugger