Debugging in PHP

The art of debugging code requires a good understanding of the codebase and logical deduction skills. A good debugging tool is like a code mentor that can walk you through the code and help you better understand what is going on, but the deductive reasoning is still up to you. In this session, you will learn how to use Xdebug, a PHP debugging tool to:
– Step through the code line-by-line
– Set breakpoints to pause the code at any point
– View the variables that are in scope when the code is paused
– Watch variables and functions as you step through the code
– Change variable values as the code runs
– Investigate the call stack to see the files loaded and functions run
– Surface hidden issues in your code
As a bonus, you will learn a few tips for helping you track down your next bug with better deductive reasoning as well!

Speaker