Say no to var_dump

Download Say no to var_dump

Post on 18-May-2015

1.961 views

Category:

Technology

2 download

Embed Size (px)

DESCRIPTION

Slides from my recent talk about debugging techniques using xdebug. Given at #bcblackpool and #phpleeds

TRANSCRIPT

<ul><li> 1. Say No To var_dumpDebugging PHP with Xdebug Tuesday, 17 August 2010 </li></ul> <p> 2. Who am I?Tuesday, 17 August 2010 3. Who are you?Tuesday, 17 August 2010 4. What is Xdebug?Tuesday, 17 August 2010 5. It turns this...... Tuesday, 17 August 2010 6. Tuesday, 17 August 2010 7. Into this..... Tuesday, 17 August 2010 8. With a little more work it turns it into this..... Tuesday, 17 August 2010 9. Tuesday, 17 August 2010 10. Tuesday, 17 August 2010 11. var_dumpTuesday, 17 August 2010 12. It turns this...... Tuesday, 17 August 2010 13. Tuesday, 17 August 2010 14. Tuesday, 17 August 2010 15. How is this achieved?php.ini ini_set Tuesday, 17 August 2010 16. Example Settingsxdebug.dump.GET=*xdebug.dump.POST=*xdebug.dump.SERVER =REMOTE_ADDR,REQUEST_METHOD,HTTP_ACCEPT_LANGUAGE,HTTP_ACCEPT_LANGUAGE Tuesday, 17 August 2010 17. The Crown Jewels: Remote Debugging Tuesday, 17 August 2010 18. Say no to var_dumpTuesday, 17 August 2010 19. Xdebug Remote Debug Demo Tuesday, 17 August 2010 20. Example Settings xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.idekey="netbeans-xdebug" Tuesday, 17 August 2010 21. Example Settings Tuesday, 17 August 2010 22. Installation http://xdebug.org/docs/install Deb / Ubuntu - Apt PECL http://xdebug.org/nd-binary.php Uses phpinfo() information to provide tailored installation instructions! Tuesday, 17 August 2010 23. Questions?Tuesday, 17 August 2010 24. Credits &amp; Resources Derick Rethans - Author of Xdebug http://xdebug.org/ http://derickrethans.nl/ Recent DPC Tutorial The mailing list (very active / quick response) Tuesday, 17 August 2010 25. Me Twitter: @bwaine Email: ben@ben-waine.co.ukTuesday, 17 August 2010 </p>