<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Matthew Turland &#187; Xdebug</title> <atom:link href="http://matthewturland.com/tag/xdebug/feed/" rel="self" type="application/rss+xml" /><link>http://matthewturland.com</link> <description></description> <lastBuildDate>Tue, 15 May 2012 02:29:07 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>PHPUnit and Xdebug on Ubuntu Karmic</title><link>http://matthewturland.com/2010/01/03/phpunit-and-xdebug-on-ubuntu-karmic/</link> <comments>http://matthewturland.com/2010/01/03/phpunit-and-xdebug-on-ubuntu-karmic/#comments</comments> <pubDate>Sun, 03 Jan 2010 16:00:20 +0000</pubDate> <dc:creator>Matthew Turland</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[PHPUnit]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Xdebug]]></category><guid
isPermaLink="false">http://matthewturland.com/?p=62</guid> <description><![CDATA[This is just a quick post to advise anyone who may be using PHPUnit and Xdebug together on Ubuntu Karmic. If you try to upgrade to PHPUnit 3.4.6 and you&#8217;re using the php5-xdebug Ubuntu package (which is Xdebug 2.0.4), you may get output that looks like this: There are two ways to deal with this [...]]]></description> <content:encoded><![CDATA[<p>This is just a quick post to advise anyone who may be using <a
title="PHPUnit" href="https://github.com/sebastianbergmann/phpunit/">PHPUnit</a> and <a
title="Xdebug - Debugger and Profiler Tool for PHP" href="http://xdebug.org/">Xdebug</a> together on <a
title="Ubuntu Home Page | Ubuntu" href="http://www.ubuntu.com/">Ubuntu Karmic</a>. If you try to upgrade to PHPUnit 3.4.6 and you&#8217;re using the <a
title="Ubuntu -- Details of package php5-xdebug in karmic" href="http://packages.ubuntu.com/karmic/php5-xdebug">php5-xdebug</a> Ubuntu package (which is Xdebug 2.0.4), you may get output that looks like this:</p><pre class="brush: plain; title: ; notranslate">$ sudo pear upgrade phpunit/PHPUnit
Did not download optional dependencies: pear/Image_GraphViz, pear/Log, use --alldeps to download automatically
phpunit/PHPUnit can optionally use package &quot;pear/Image_GraphViz&quot; (version &gt;= 1.2.1)
phpunit/PHPUnit can optionally use package &quot;pear/Log&quot;
phpunit/PHPUnit can optionally use PHP extension &quot;pdo_sqlite&quot;
phpunit/PHPUnit requires PHP extension &quot;xdebug&quot; (version &gt;= 2.0.5), installed version is 2.0.4
No valid packages found
upgrade failed</pre><p>There are two ways to deal with this situation. First off, note that the newer Xdebug 2.0.5 version includes <a
title="Xdebug: Updates" href="http://xdebug.org/updates.php">several bugfixes</a> including one related to code coverage reporting. That said, if you still want to continue using the php5-xdebug package anyway, you can force the upgrade by having the PEAR installer ignore dependencies like so:</p><pre class="brush: bash; title: ; notranslate">sudo pear upgrade -n phpunit/PHPUnit</pre><p>The other method involves installing Xdebug 2.0.5. First, if you have the php5-xdebug package, remove it.</p><pre class="brush: bash; title: ; notranslate">sudo apt-get remove php5-xdebug</pre><p>Next, use the PECL installer to install Xdebug. This requires that you have the php5-dev package installed so that the extension can be compiled locally.</p><pre class="brush: bash; title: ; notranslate">sudo apt-get install php5-dev
sudo pecl install xdebug</pre><p>At this point, create the file /etc/php5/conf.d/xdebug.ini if it doesn&#8217;t already exist and populate it with these contents:</p><pre class="brush: plain; title: ; notranslate">zend_extension=/usr/lib/php5/20060613/xdebug.so</pre><p>Then bounce Apache so that the new extension will be loaded.</p><pre class="brush: bash; title: ; notranslate">sudo apache2ctl restart</pre><p>That&#8217;s it. Hope someone finds this helpful.</p> ]]></content:encoded> <wfw:commentRss>http://matthewturland.com/2010/01/03/phpunit-and-xdebug-on-ubuntu-karmic/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using disk: enhanced
Database Caching 14/17 queries in 0.010 seconds using apc

Served from: matthewturland.com @ 2012-05-22 11:03:36 -->
