Setting up a PHP dev environment on a Mac using VS Code and MAMP, including XDEBUG support/

Опубликовано: 03 Октябрь 2024
на канале: arpSofDev
18,954
like

This is my current preferred dev environment to teach PHP programming with high school students in Australia.
This is for Mac users. Check out my other videos for PC users.

In addition you should also enable error reporting.
1. Locate your php.ini file
In the MAMP control panel, open the Start Page
Click on phpInfo to bring up the server specs page we used to install XDEBUG
Find the line that says "Loaded Configuration File"
Open THAT file
2. Turn OFF your MAMP server
3. Find the line in the php.ini file that says "Display Errors = Off" and change it to On
4. Find the line in the php.ini file that says "Error Reporting = " and make sure it says E_ALL
5. Restart the server.

If you prefer a video to follow, try this one:    • Setting display_errors variable in th...  .