This is an old revision of the document!
The Eclipse IDE Integrated Development Environment is open source and provides an excellent environment to develop web applications. I migrated the LAMP server from XAMPP to WSL (Windows Subsystem for Linux) with the arrival of Windows 10. See here for XAMPP related instructions.
Application | Version |
---|---|
Eclipse for PHP Developers | 2024-03 |
OS | Debian 12.5 |
Apache | 2.4.59 |
PHP | 8.3.7 |
MariaDB | 10.11.61 |
Eclipse requires Java to run, so install this first.
To activate the debugger, you need to add the following lines to the bottom of x:/xampp/php/php.ini:
[XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug-2.6.1-7.2-vc15.dll" ; IMPORTANT: Windows does not find the dll if the drive letter is missing! xdebug.remote_autostart = 1 xdebug.profiler_append = 0 xdebug.profiler_enable = 0 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "\xampp\tmp" ;xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.remote_log = "\xampp\tmp\xdebug.txt" xdebug.remote_port = 9000 xdebug.trace_output_dir = "\xampp\tmp" xdebug.remote_cookie_expire_time = 36000
To activate the debugger, you need to add the following lines to the bottom of x:/xampp/php/php.ini:
[Xdebug] zend_extension=H:\xampp\php\ext\php_xdebug.dll xdebug.remote_enable = 1 xdebug.remote_port = 9000 xdebug.trace_output_dir = "\xampp\tmp"
Other options can be left at default values. Check the settings have been recognized by checking phpinfo. xampp comes with the correct php_xdebug.dll file already located in x:/xampp/php/ext.
Install the TypeScript IDE for Eclipse.