Monday, September 27, 2021

JDK + Eclipse PDT + Brew + Php + xdebug on Mac

Steps

  1. Download and Install JDK - https://www.oracle.com/java/technologies/downloads/
  2. Download and Install Eclipse for PHP developers - https://www.eclipse.org/downloads/packages/
  3. Install Homebrew - curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
  4. Install php and peclbrew install php
  5. Install xdebug - pecl install xdebug
  6. Edit php.ini - vi /usr/local/etc/php/8.0/php.ini

    xdebug.mode=debug

    xdebug.client_port=9000