Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
web:eclipse [2024/05/23 06:27] – [XDebug for PHP 7.2] Bernard Condrauweb:eclipse [2024/10/31 14:32] (current) – [Settings] Bernard Condrau
Line 29: Line 29:
  
  
-==== XDebug for PHP 5.6 ==== 
-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. 
- 
-=== Links === 
-  * [[https://wiki.eclipse.org/Debugging_using_XDebug|Debugging using XDebug]] 
-  * [[http://www.eclipse.org/pdt/documents/XDebugGuideForPDT2.0.pdf|XDebug Guide]] 
-  * [[https://xdebug.org/docs/remote|XDEBUG EXTENSION FOR PHP - DOCUMENTATION]] 
-  * [[https://xdebug.org/wizard.php|Xdebug Support: Tailored Installation Instructions]] 
  
 ==== JavaScript ==== ==== JavaScript ====
Line 72: Line 58:
   - Add or Edit **Debug Configurations...**. If you pointed the DocumentRoot to your workspace, then you can leave the URL on "Auto Generate", otherwise you must modify the URL.{{ :web:debug.jpg?100 |Debug Configuration}}   - Add or Edit **Debug Configurations...**. If you pointed the DocumentRoot to your workspace, then you can leave the URL on "Auto Generate", otherwise you must modify the URL.{{ :web:debug.jpg?100 |Debug Configuration}}
   - **Window --> Preferences --> PHP --> Code Style --> Formatter**. Select "PHP Conventions" as active profile.{{ :web:phpconvention.jpg?100 |PHP Formatter}}   - **Window --> Preferences --> PHP --> Code Style --> Formatter**. Select "PHP Conventions" as active profile.{{ :web:phpconvention.jpg?100 |PHP Formatter}}
 +  - **Window --> Preferences --> General --> Editors --> Text Editors**. Uncheck "Use find/replace overlay" (see [[https://stackoverflow.com/questions/79012836/eclipse-2024-09-is-there-a-way-to-get-the-old-find-replace-window-back|Eclipse 2024-09 Is there a way to get the old Find/Replace window back?]])
   - If you have existing projects   - If you have existing projects
     * either select the project directory as workspace when first starting up the new eclipse, or     * either select the project directory as workspace when first starting up the new eclipse, or