Debugging in PHP
summary
Argues that interactive PHP debugging pays off and shows it: sets a breakpoint in a 2015 theme content template, steps into apply_filters, finds a closure injecting "bug" text, and fixes behavior by editing the runtime variable is_true to false — proving the root without changing code. Uses Xdebug + phpStorm for breakpoints and variable editing, recommends VVV with webgrind for profiling, notes git bisect for tracking bad commits and Navicat for inspecting MySQL queries.
AI-written summary · about
chapters (18)
- 0:00Start
- 1:27Identify the Issue
- 4:21To Isolate the Issue
- 6:02Source of the Issue
- 8:33Interactive Debugging
- 9:59Var Dumps
- 12:39Benefits of Having Debugging in Phpstorm
- 12:58Set a Breakpoint
- 13:24View All the Variables
- 13:58Watch Variables and Functions
- 18:14Regression Test
- 18:55Live Demo
- 20:42Data Issue
- 23:37Call Stack
- 24:11Step into the Content Function
- 25:50Apply Filters
- 31:30Questions
- 40:55Default Wordpress Content
