This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
web:eclipse [2024/05/20 13:44] – [Installation] Bernard Condrau | web:eclipse [2024/10/31 14:32] (current) – [Settings] Bernard Condrau | ||
---|---|---|---|
Line 14: | Line 14: | ||
===== LAMP with Xdebug ===== | ===== LAMP with Xdebug ===== | ||
* Follow [[deb12: | * Follow [[deb12: | ||
- | |||
- | |||
- | ==== Apache ==== | ||
- | |||
- | Modify x: | ||
- | DocumentRoot " | ||
- | < | ||
- | Options Indexes FollowSymLinks Includes ExecCGI | ||
- | AllowOverride All | ||
- | Require all granted | ||
- | </ | ||
- | Alternatively, | ||
- | < | ||
- | Options Indexes FollowSymLinks Includes ExecCGI | ||
- | AllowOverride All | ||
- | Require all granted | ||
- | </ | ||
- | < | ||
- | ScriptAlias /cgi-bin/ " | ||
- | Alias /joomla " | ||
- | </ | ||
- | |||
- | To enable SSL, you need to set the DocumentRoot in C: | ||
- | |||
- | ==== PHP ==== | ||
- | ==== php.ini ==== | ||
- | Review your php.ini:< | ||
- | short_open_tag = On | ||
- | max_execution_time=120 | ||
- | max_input_time=150 | ||
- | max_input_vars = 2000 | ||
- | memory_limit = 512M | ||
- | error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT | ||
- | display_errors=On | ||
- | post_max_size = 32M | ||
- | sys_temp_dir = "/ | ||
- | upload_tmp_dir = "/ | ||
- | upload_max_filesize=128M | ||
- | date.timezone=Asia/ | ||
===== Eclipse IDE ===== | ===== Eclipse IDE ===== | ||
Line 67: | Line 28: | ||
* [[https:// | * [[https:// | ||
- | ==== XDebug for PHP 7.2 ==== | ||
- | To activate the debugger, you need to add the following lines to the bottom of x:/ | ||
- | [XDebug] | ||
- | zend_extension = " | ||
- | xdebug.remote_autostart = 1 | ||
- | xdebug.profiler_append = 0 | ||
- | xdebug.profiler_enable = 0 | ||
- | xdebug.profiler_enable_trigger = 0 | ||
- | xdebug.profiler_output_dir = " | ||
- | ; | ||
- | xdebug.remote_enable = 1 | ||
- | xdebug.remote_handler = " | ||
- | xdebug.remote_host = " | ||
- | xdebug.remote_log = " | ||
- | xdebug.remote_port = 9000 | ||
- | xdebug.trace_output_dir = " | ||
- | xdebug.remote_cookie_expire_time = 36000</ | ||
- | * Other options can be left at default values. Check the settings have been recognized by checking phpinfo. | ||
- | * XAMPP does not contain the correct php_xdebug.dll, | ||
- | * Make sure you have Visual C++ 2017 installed. | ||
- | * Download and install: [[https:// | ||
- | * Check phpinfo: [[https:// | ||
- | |||
- | ==== XDebug for PHP 5.6 ==== | ||
- | To activate the debugger, you need to add the following lines to the bottom of x:/ | ||
- | [Xdebug] | ||
- | zend_extension=H: | ||
- | xdebug.remote_enable = 1 | ||
- | xdebug.remote_port = 9000 | ||
- | xdebug.trace_output_dir = " | ||
- | 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:/ | ||
- | |||
- | === Links === | ||
- | * [[https:// | ||
- | * [[http:// | ||
- | * [[https:// | ||
- | * [[https:// | ||
==== JavaScript ==== | ==== JavaScript ==== | ||
Line 134: | Line 58: | ||
- Add or Edit **Debug Configurations...**. If you pointed the DocumentRoot to your workspace, then you can leave the URL on "Auto Generate", | - Add or Edit **Debug Configurations...**. If you pointed the DocumentRoot to your workspace, then you can leave the URL on "Auto Generate", | ||
- **Window --> Preferences --> PHP --> Code Style --> Formatter**. Select "PHP Conventions" | - **Window --> Preferences --> PHP --> Code Style --> Formatter**. Select "PHP Conventions" | ||
+ | - **Window --> Preferences --> General --> Editors --> Text Editors**. Uncheck "Use find/ | ||
- 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 |