News Feed
Sections




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

Rafael Dohms' Blog:
Debugging PHPUnit Tests in NetBeans with XDebug
May 18, 2011 @ 09:20:49

Rafael Dohms has, in a recent post to his blog, shown how to set up NetBeans to use PHPUnit tests with XDebug. This allows him to run his unit test and track down problems with the handy XDebug extension right from his IDE.

Every now and then you run into this weird situation in your code, where something that was supposed to zig is now zagging and it makes no sense whatsoever. For me this ends up happening in my unit tests since i'm not running everything in the browser everytime and since my tests usually run more scenarios then a regular browser run, that's where the weird stuff happens.

He shows you how to configure NetBeans with the path to your local PHP installation, configure the xdebug settings in your php.ini and how to coordinate the PHPUnit install to send its output to your NetBeans instance. Then it's as simple as clicking "Debug" on the project and running "phpunit-debug" from the command line.

0 comments voice your opinion now!
phpunit unittest xdebug debug tutorial ide netbeans


blog comments powered by Disqus

Similar Posts

Knp Labs: Deploy Your Symfony Application Painlessly with Capifony

Zend Developer Zone: Build an Enterprise-Grade PHP Stack with Zend Server 5.0 and Oracle 11g

Docnet.nu: SSL And PHP Streams - Part 1: You Are Doing It Wrong™

Sebastian Bergmann's Blog: Even More Work on Reporting in PHPUnit 3

SitePoint PHP Blog: Bootstrapping a Laravel CRUD Project


Community Events

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


application example api composer introduction symfony community yii2 laravel framework programming podcast project interview language php7 opinion series part2 list

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