~/talk

Step into debugging

Talkat phpday 2023 · 2023-05-18..05-19· [developer-experience]
slides:none on file

Walkthrough of installing and configuring Xdebug (xdebug.mode=debug and xdebug.discover_client_host=1), hooking it to PhpStorm, setting breakpoints and conditional breakpoints, and stepping over/into/out to inspect variables and call stacks. Demonstrates browser cookie/query activation, CLI/test debugging, and WSL2/docker quirks; shows demos that work but need the IDE listening and correct env vars. Strong warning: do not enable xdebug in production.

AI-written summary · about

  1. 0:00Step debugging in PHP
  2. 1:32Traditional debugging limits
  3. 3:39Xdebug workflow
  4. 6:25Xdebug client-server model
  5. 7:49Installing Xdebug
  6. 10:37Never use Xdebug in production
  7. 11:18Trigger Xdebug in browser
  8. 13:24Breakpoints explained
  9. 14:50Live debug session demo
  10. 17:42PHPStorm debugging basics
  11. 19:48Debugging Laravel controllers
  12. 23:21Stepping in/out functions
  13. 27:18Xdebug setup challenges
  14. 28:44Conditional breakpoints
  15. 32:12Xdebug console bonus
  16. 33:57Debugging CLI scripts/tests
  17. 37:10Q&A: Performance impact
  18. 38:55Q&A: Debugging API requests
  19. 44:22Closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.