Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The debug dance: An intro to step debugging - ZendCon & OpenEnterprise 2018

The debug dance: An intro to step debugging - ZendCon & OpenEnterprise 2018

Talk given at ZendCon & OpenEnterprise (2018-10-16)

Using var_dump() to debug your app has its benefits but there are more comprehensive and efficient ways to debug those particularly elusive bugs. Enter step debugging. We’ll be using the PhpStorm IDE to step through our PHP apps line by line and see how much more power step debugging gives us over the conventional var_dump() technique. We’ll also touch on debugging from the command line. Learn to dance in PHP with step debugging.

Sammy Kaye Powers

October 16, 2018

More Decks by Sammy Kaye Powers

Other Decks in Programming


  1. joind.in/talk/5fb02 @SammyK #zcoe18 Kate Gregory “ I'm not saying, ‘don't

    use printf()’, [...] but I think it's insane to use printf() on day one of learning C++. [...] I would first say use the debugger. Episode 30: Stop Teaching C (When Teaching C++)
  2. joind.in/talk/5fb02 @SammyK #zcoe18 shows the execution path to the point

    where the code was paused Frames I… don’t have a cool drawing for “frames”…
  3. on APT Install + $ add-apt-repository -y \ ppa:ondrej/php $

    apt-get update $ apt-get install php7.2-xdebug