Search

FAQ > PHP

How to adjust Xdebug modes for better performance

  1. Open MAMP PRO.
  2. Stop the server if it’s currently running.
  3. Go to Menu > File > Open Template > PHP (php.ini) > VERSION.
  4. The php.ini file will open.
  5. If a dialog box appears, read it and click OK.
  6. Use the search function (Command + F) to find xdebug.mode=.
  7. The line may look something like this: xdebug.mode=develop,coverage,debug,gcstats,profile,trace. This lists several Xdebug modes in sequence.
  8. Remove certain Xdebug modes to increase processing speed. For example, excluding trace can make a significant difference in execution speed. After removal, the line will look like this: xdebug.mode=develop,coverage,debug,gcstats,profile.
  9. Save your changes (Command + S).
  10. Close the file (Command + W).
  11. Start the server again.

Additional Information