Using PHPEclipse/Installation/Installing the DBG Debugger

Somebody knows how to configure php debuger in eclipse??? Write to me admin@it-ideas.eu Download the dbg Debugger from here: http://dd.cron.ru/dbg/downloads.php


Debugger installation for wampp2 distribution (wampp 2.2 contains PHP 4.3.2) edit

1) copy php_dbg.dll (you must extract it from the downloaded file, according to your php version, and rename to php_dbg.dll) to

c:\wampp2\php\extensions

2) edit C:\wampp2\php\php.ini, and review the following parameters:

this is to see output while debugging

implicit_flush = On

check this parameter

extension_dir = \wampp2\php\extensions\

add the dbg extension

extension=php_dbg.dll

Add this section at the end of php.ini

[debugger]
debugger.enabled = true
debugger.profiler_enabled = true
debugger.JIT_host = clienthost
debugger.JIT_port = 7869

Note: if you would like to use only one php.ini you can maintain for example a central c:\windows\php.ini and delete the C:\wampp2\php\php.ini and C:\wampp2\apache\bin\php.ini

Additional information about the debugger can be found here: DbgBasedDebugger

Debugger installation for xampp distribution (xampp 1.6.3a contains PHP 5.2.3) edit

1) copy php_dbg.dll (you must extract it from the downloaded file, according to your php version, and rename to php_dbg.dll) to

c:\xampp\php\extensions

and

c:\xampp\php\ext

2) edit C:\xampp\apache\bin\php.ini, and review the following parameters:

this is to see output while debugging

implicit_flush = On

check this parameter

extension_dir = \xampp\php\ext\

Add this section at the end of php.ini

[debugger]
extension=php_dbg.dll
debugger.enabled=on
debugger_profiler_enabled=on
debugger.hosts_allow=localhost
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16

Add the following line
zend_extension_ts = "C:\xampp\php\ext\php_dbg.dll"

as the first line in your Zend section.

Check out this wiki page Using PHPEclipse: Installation: Installing the DBG Debugger. It shows a good example of setting up Eclipse and PHP for debugging.