News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Davey Shafik's Blog:
Debugging on the Command Line with xdebug
January 04, 2010 @ 09:33:12

Davey Shafik has a quick tip for anyone trying to use Xdebug from the command line and finding themselves having issues.

Thanks to some help from Derick and my co-worker Trevor, I now have a simple bash script that will let me and my team easily debug CLI scripts on our development server.

The script is two lines (really just one) that uses a combination of environment variables, PHP's command line binary and a few other standard unix commands to parse the output of the request. The script can be made executable and dropped into a place in your path to make it as simple as running "xdebug file.php" on the file.

0 comments voice your opinion now!
debug xdebug commandline cli tutorial


blog comments powered by Disqus

Similar Posts

Lars Strojny: Functional programming in PHP

DevShed: Constructing Multi-Line PDF Documents with PHP 5

Gary Hockin's Blog: Zend Framework 2 and a Restful Application

Muhammad Hussein Fattahizadeh's Blog: Zend Config tree solution

Zend Developer Zone: Reading and Writing Spreadsheets with PHP


Community Events

Don't see your event here?
Let us know!


community language version opinion list laravel voicesoftheelephpant podcast introduction release library php7 extension security api framework example interview laravel5 series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework