~/talk

Debugging with Debug and PhpStorm

Talkat Laracon EU 2022 · 2022-04-26..04-27· [php]
slides:none on file

A live demo reproduces a bug in a small Markdown blog with five posts where an unfinished article still appears; using Xdebug extension plus a browser extension sets XDEBUG_SESSION cookie and PhpStorm listening on 9000/9003 allows setting breakpoints, conditional breakpoints, inline watches and evaluate-expression checks without changing code. Stepping through the map/filter pipeline reveals a mapping typo that turns the hidden flag into a different key, fixing it removes the unwanted post so the list drops from five to four.

AI-written summary · about

  1. 0:00Introduction
  2. 1:33Debugging approaches in PHP
  3. 3:17Setting up Xdebug
  4. 7:11Starting debugging in PhpStorm
  5. 13:25Xdebug vs dump and die
  6. 14:29Advanced breakpoints in PhpStorm
  7. 21:13Debugging unknown code paths
  8. 23:00Xdebug vs other tools
  9. 24:23Closing 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.