Say No To var_dumpDebugging PHP with Xdebug
Tuesday, 17 August 2010
Who am I?
Tuesday, 17 August 2010
Who are you?
Tuesday, 17 August 2010
What is Xdebug?
Tuesday, 17 August 2010
It turns this......
Tuesday, 17 August 2010
Tuesday, 17 August 2010
Into this.....
Tuesday, 17 August 2010
With a little more work it turns it into
this.....
Tuesday, 17 August 2010
Tuesday, 17 August 2010
Tuesday, 17 August 2010
var_dump
Tuesday, 17 August 2010
It turns this......
Tuesday, 17 August 2010
Tuesday, 17 August 2010
Tuesday, 17 August 2010
How is this achieved?
php.ini ini_set
Tuesday, 17 August 2010
Example Settingsxdebug.dump.GET=*xdebug.dump.POST=*xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD,HTTP_ACCEPT_LANGUAGE,HTTP_ACCEPT_LANGUAGE
Tuesday, 17 August 2010
The Crown Jewels:Remote Debugging
Tuesday, 17 August 2010
Say no to var_dump
Tuesday, 17 August 2010
Xdebug Remote Debug Demo
Tuesday, 17 August 2010
Example Settings
xdebug.remote_enable=1xdebug.remote_handler=dbgpxdebug.remote_mode=reqxdebug.remote_host=127.0.0.1xdebug.remote_port=9000xdebug.idekey="netbeans-xdebug"
Tuesday, 17 August 2010
Example Settings
Tuesday, 17 August 2010
Installation
• http://xdebug.org/docs/install
• Deb / Ubuntu - Apt
• PECL
• http://xdebug.org/find-binary.phpUses phpinfo() information to provide tailored installation instructions!
Tuesday, 17 August 2010
Questions?
Tuesday, 17 August 2010
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
Me
Twitter: @bwaineEmail: [email protected]
Tuesday, 17 August 2010