четверг, 20 декабря 2012 г.

How to use Zend Debugger as debug tool and XDebug as code coverage tool ?

I like Zend Debugger more than Xdebug. Because Zend Debugger does fall never when you add some expressions to watch window.

But I use PHPUnit and PHP Code Coverage tools And PHP Code Coverage requires Xdebug. So I need to have some way to use Zend Debugger and Xdebug together.
And I know this way.

You need to load Xdebug before loading Zend Debugger.
See example of php.ini file:

zend_extension=/usr/lib/php5/20090626/xdebug.so
zend_extension=/opt/ZendDebugger/debugger/php-5.3.x/ZendDebugger.so

If you change these two lines you won't get a possibility to use Zend Debugger as debug tool.



1 комментарий: