More Related Content
Similar to Say no to var_dump (11)
Say no to var_dump
- 1. Say No To var_dump
Debugging PHP with Xdebug
Tuesday, 17 August 2010
- 8. With a little more
work it turns it into
this.....
Tuesday, 17 August 2010
- 15. How is this achieved?
php.ini
ini_set
Tuesday, 17 August 2010
- 16. Example Settings
xdebug.dump.GET=*
xdebug.dump.POST=*
xdebug.dump.SERVER =
REMOTE_ADDR,REQUEST_METHOD,HTTP_ACCEPT_LANGUA
GE,HTTP_ACCEPT_LANGUAGE
Tuesday, 17 August 2010
- 18. Say no to var_dump
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
- 22. Installation
• http://xdebug.org/docs/install
• Deb / Ubuntu - Apt
• PECL
• http://xdebug.org/find-binary.php
Uses phpinfo() information to provide tailored installation instructions!
Tuesday, 17 August 2010
- 24. Credits & 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.uk
Tuesday, 17 August 2010