- Install the extension named xdebugfor php in visual studio code.
- Download and install xampp or configure docker with PHP 8.1 or later
- Follow the instructions in the xdebug config website https://xdebug.org/wizardOR
- Run the following command to ensure xdebug is correctly installed php -v. If you see the xdebug name there then you are good to go.
- Run php -iin CMD then paste the results on thehttps://xdebug.org/wizardwebsite
- Download the recommended DLL library
- Move the downloaded file to C:\xampp\php\ext, or where your xampp is installed and rename it to php_xdebug.dll
- Update php.iniand add the line:zend_extension = xdebug
- Once the xdebug has been correctly configure you can press F5 or go to run/start debugging to start debugging.
- Press Ctrl + Shift + D
- Select PHPUnit Debug
- Press the Start button next to run or Press F5
To to Terminal/Run Task/EZAPI server
- composer install
- composer dump-autoload
- Duplicate .env.example and rename them with .env and copy the content of example to them.
- If Composer is preferred follow the step above.