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:45] – Bernard Condrau | web:eclipse [2025/06/23 14:04] (current) – [Java] Bernard Condrau | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| < | < | ||
| + | |||
| + | ===== WSL Settings ===== | ||
| + | - To change the default setting of WSL (WSL1/WSL2) to allow file permissions on mounted Windows drives add the file '' | ||
| + | options=" | ||
| + | - Stop wsl from the Windows command line:< | ||
| + | - Start wsl from the Windows command line:< | ||
| + | - Check wsl instances from the Windows command line:< | ||
| ===== LAMP with Xdebug ===== | ===== LAMP with Xdebug ===== | ||
| * Follow [[deb12: | * Follow [[deb12: | ||
| - | * 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 ===== | ||
| + | |||
| + | ==== PHP ==== | ||
| + | * Make sure '' | ||
| ==== Java ==== | ==== Java ==== | ||
| Line 41: | Line 38: | ||
| * [[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 108: | Line 68: | ||
| - 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 | ||