Step into debugging
summary
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
chapters (19)
- 0:00Step debugging in PHP
- 1:32Traditional debugging limits
- 3:39Xdebug workflow
- 6:25Xdebug client-server model
- 7:49Installing Xdebug
- 10:37Never use Xdebug in production
- 11:18Trigger Xdebug in browser
- 13:24Breakpoints explained
- 14:50Live debug session demo
- 17:42PHPStorm debugging basics
- 19:48Debugging Laravel controllers
- 23:21Stepping in/out functions
- 27:18Xdebug setup challenges
- 28:44Conditional breakpoints
- 32:12Xdebug console bonus
- 33:57Debugging CLI scripts/tests
- 37:10Q&A: Performance impact
- 38:55Q&A: Debugging API requests
- 44:22Closing remarks








