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.

8c090cc1ccd623a146ddd9159b1bf7e2?s=128

Sammy Kaye Powers

October 16, 2018
Tweet

Transcript

  1. 12.

    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. 15.
  3. 20.

    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”…
  4. 31.

    on APT Install + $ add-apt-repository -y \ ppa:ondrej/php $

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