IntelliJ, Xdebug and Apache

From Geitenpad
Revision as of 14:34, 5 January 2025 by Rijk (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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