IntelliJ, Xdebug and Apache

From Geitenpad
Jump to navigation Jump to search
  1. Install apache with php and php_xdebug
  2. Enable remote debug:
rijk@RijksKReich:~$ sudo vim /etc/php/7.2/mods-available/xdebug.ini
  1. Add xdebug.remote_enable = 1
  2. Install chrome browser extension: https://www.jetbrains.com/help/phpstorm/browser-debugging-extensions.html
  3. Browse naar page
  4. Configure IntelliJ (check config, break on first line, port 9000)
  5. Start listening on remote extensions (debug with telephone icon)
  6. Click debug in browser extension and refresh page