How to adjust Xdebug modes for better performance
-
Open MAMP PRO.
-
Stop the servers if they are running.
-
Go to File › Open Template › PHP (php.ini) › [PHP version].
-
If a dialog box appears, read it and click OK.
-
Search for the line containing
xdebug.mode=(⌘ F). It may look like:xdebug.mode=develop,coverage,debug,gcstats,profile,trace -
Remove the modes you do not need. Removing
tracein particular can significantly improve execution speed:xdebug.mode=develop,coverage,debug,gcstats,profile -
Save the file (⌘ S).
-
Close the editor (⌘ W).
-
Start the servers.