<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 18 Jun 2013 01:28:52 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Chris Jones: Quick Debugging of PHP Scripts in Emacs with Geben and Xdebug]]></title>
      <guid>http://www.phpdeveloper.org/news/19085</guid>
      <link>http://www.phpdeveloper.org/news/19085</link>
      <description><![CDATA[<p>
<i>Chris Jones</i> has a new post showing how you can <a href="https://blogs.oracle.com/opal/entry/quick_debugging_of_php_scripts">use Emacs and Xdebug for debugging</a> with the help of the <a href="http://code.google.com/p/geben-on-emacs/">geben</a> plugin.
</p>
<blockquote>
When you want to test a PHP code snippet quickly, it's handy to do it within your day-to-day environment. For me, this environment is Emacs. The geben package for Emacs provides an interface to the DBGp protocol, such as used by Derick Rethans's standard Xdebug extension for PHP. With the combination of geben and Xdebug, I can quickly and efficiently step through execution of local files, examining code flow and data values.
</blockquote>
<p>
He includes a ten step process (step 11 is basically "use it") that walks you through the installation of the full stack - PHP, Xdebug and geben - and the configuration changes you'll need to make to get them all working together. Some basic usage instructions are included, but if you want more details on using geben, check out <a href="http://code.google.com/p/geben-on-emacs/">the project's site</a>.
</p>]]></description>
      <pubDate>Thu, 24 Jan 2013 11:19:47 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[7PHP.com: Interview with Derick Rethans - The Father Of The PHP Swiss-Army Knife aka Xdebug]]></title>
      <guid>http://www.phpdeveloper.org/news/19029</guid>
      <link>http://www.phpdeveloper.org/news/19029</link>
      <description><![CDATA[<p>
On 7PHP.com today <i>Khayrattee Wasseem</i> has posted his latest interview with a member of the PHP community - this time it's <a href="http://7php.com/php-interview-derick-rethans/">Derick Rethans</a> "The Father Of The PHP Swiss-Army Knife aka Xdebug".
</p>
<blockquote>
In this edition I talked with Derick Rethans the Father Of The PHP developer's Swiss-Army Knife aka <a href="http://xdebug.org/">Xdebug</a>. Derick is an expert when it comes to the PHP Internals; no wonder he is viewed as a vibrant and "man of action" within <a href="http://7php.com/category/phpcommunity/">The PHP Community</a>. As a PHP Core Contributor, he has been at the crux of many PHP extensions and variations; the mcrypt, date and input-filter extensions, bug fixes, additions and even leading the QA team.
</blockquote>
<p>
<i>Derick</i> answers questions about how he got involved with PHP and how he thinks it compares from then to now. He also talks some about what tools he uses for his development and more details behind Xdebug's origins and PHP extensions in general.
</p>]]></description>
      <pubDate>Mon, 14 Jan 2013 09:28:44 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Joshua Thijssen: Debugging remote CLI with phpstorm]]></title>
      <guid>http://www.phpdeveloper.org/news/18942</guid>
      <link>http://www.phpdeveloper.org/news/18942</link>
      <description><![CDATA[<p>
<i>Joshua Thijssen</i> has a recent post for all the PHPStorm users out there (or maybe investigating a new IDE) and are looking for a way to debug your PHP apps easily with XDebug. Well, he's come up with a <a href="http://www.adayinthelifeof.nl/2012/12/20/debugging-remote-cli-with-phpstorm/">step-by-step guide</a> to help you get it all set up and working, complete with screenshots. He helps you debug command-line applications, but the setup will work for your web apps too.
</p>
<blockquote>
Even in these days, with full-featured PHP IDEs around,  I still see PHP developers using var_dump() and die() to debug their code. Not only is this a very bad way of "debugging", it has other dangers as well [...]. We've probably all been there,.. But we don't have to. Debugging your code properly through an IDE is quite easy, but one of the major problems is debugging CLI code. Since many frameworks like Zend,  Symfony and micro-frameworks like Cilex can be used to create command-line apps, cronjobs and even "deamons", so how do we easily debug this kind of code?
</blockquote>
<p>
He starts with the setup of a development instance (he recommends a clone-able virtual machine environment) and shows how o configure both XDebug and PHPStorm to work together happily. He shows what configuration options and steps you'll need to take to be able to debug the CLI apps too, including a command-line option to specify the IP to report the debugging into back into.
</p>]]></description>
      <pubDate>Mon, 24 Dec 2012 10:11:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Pablo Viquez: PHP Step by Step Debugging with JMeter, XDebug & Eclipse PDT]]></title>
      <guid>http://www.phpdeveloper.org/news/18852</guid>
      <link>http://www.phpdeveloper.org/news/18852</link>
      <description><![CDATA[<p>
In a <a href="http://www.pabloviquez.com/2012/10/php-debugging-with-jmeter-and-zend-debugger/">previous post</a> <i>Pablo Viquez</i> talked about integrating JMeter and Zend Debugger for testing your PHP applications. In <a href="http://www.pabloviquez.com/2012/12/php-step-by-step-debugging-with-jmeter-xdebug-eclipse-pdt/">this new post</a> he goes one more step in and talks about integrating Eclipse, JMeter and using XDebug this time for the debugging.
</p>
<blockquote>
In a <a href="http://www.pabloviquez.com/2012/10/php-debugging-with-jmeter-and-zend-debugger/">previous post</a> I wrote about doing step by step debugging using Zend Debugger and Zend Studio making the calls from JMeter, however not everyone has Zend Server or Zend Studio installed, and since XDebug is an awesome project I though that will be awesome to do the same using XDebug. [...] As <a href="http://www.pabloviquez.com/2012/10/php-debugging-with-jmeter-and-zend-debugger/">explained previously</a>, using the browser for API debugging can be pretty hard or nearly impossible unless you build some sort of UI, which normally I do not have time to do, so JMeter is perfect for the job!
</blockquote>
<p>
He includes the configuration changes that'll need to be made to Apache and how to set up and configure the new project in Eclipse. He also includes the setup of the jMeter plan (using his <a href="http://www.pabloviquez.com/wp-content/uploads/2012/12/JMeterXdebug.zip">example</a>) and executing it to execute the script/get the debugging information.
</p>]]></description>
      <pubDate>Thu, 06 Dec 2012 09:47:17 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Debugging and Profiling PHP with Xdebug]]></title>
      <guid>http://www.phpdeveloper.org/news/18795</guid>
      <link>http://www.phpdeveloper.org/news/18795</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial showing you how to effectively <a href="http://phpmaster.com/debugging-and-profiling-php-with-xdebug/">debug your applications with Xdebug</a>, a handy tool that provides more detail around your errors just by installing it.
</p>
<blockquote>
Xdebug is a free and open source project by <a href="http://derickrethans.nl/">Derick Rethans</a> and is probably one of the most useful PHP extensions. It provides more than just basic debugging support, but also stack traces, profiling, code coverage, and so on. In this article you'll see how to install and configure Xdebug, how to debug your PHP application from Netbeans, and how to read a profiling report in KCachegrind.
</blockquote>
<p>
He walks you through the installation process (installing it from a package, not compiling) and how to enable it in your "php.ini" configuration file. He also shows how to hook it into the debugger on your IDE (in this case Netbeans) to receive debug messages and be able to step through the code to easily locate the issues. Also included is some basic information about profiling your application and viewing the resulting data in something like <a href="http://kcachegrind.sourceforge.net/html/Home.html">Kcachegrind</a> or <a href="http://code.google.com/p/webgrind/">Webgrind</a> 
</p>]]></description>
      <pubDate>Fri, 23 Nov 2012 12:58:31 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Silver Lining Blog: How to Enable XDebug in Windows Azure Web Sites]]></title>
      <guid>http://www.phpdeveloper.org/news/18528</guid>
      <link>http://www.phpdeveloper.org/news/18528</link>
      <description><![CDATA[<p>
On the Silver Lining blog (a MSDN Windows Azure related site), there's <a href="http://blogs.msdn.com/b/silverlining/archive/2012/09/20/how-to-enable-xdebug-in-windows-azure-web-sites.aspx">a recent post</a> showing how you can enable XDebug on your Azure instance to help with debugging your application.
</p>
<blockquote>
 In this post, I'll cover how to run <a href="http://xdebug.org/">XDebug</a> (including the profiler) in Windows Azure Web Sites. Enabling XDebug in Windows Azure Web Sites is as simple as enabling an extension. However, enabling an extension for the built-in PHP runtime is slightly different than doing so for a custom PHP runtime. I'll cover both scenarios here. 
</blockquote>
<p>
The post is broken up into two sections - one if you're just using the built-in PHP runtime that's already in the instance and another if you're using a custom one of your own. Changes to the configuration files and some screenshots of where to make the updates are included.
</p>]]></description>
      <pubDate>Thu, 27 Sep 2012 11:53:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Danne Lundqvist: Using Xdebug in MAMP]]></title>
      <guid>http://www.phpdeveloper.org/news/18488</guid>
      <link>http://www.phpdeveloper.org/news/18488</link>
      <description><![CDATA[<p>
<i>Danne Lundqvist</i> has a new post today showing you how to <a href="http://www.dotvoid.com/2012/09/using-xdebug-in-mamp/">install and use XDebug with MAMP</a>, the popular all-in-one LAMP package for OS X.
</p>
<blockquote>
MAMP is a full local server environment including Apache, PHP and MySQL in one package. Anyone feeling at home in *nix systems should feel at home using both OS X and MAMP. [...]  As I have helped a few collegues setup <a href="http://www.xdebug.org/">Xdebug</a> in MAMP I have discovered that a lot of developers don't do this as they don't know how simple it is. Even seasoned PHP developers use the old echo/die debugging techniques.
</blockquote>
<p>
He includes all the changes you'll need to make to configuration files and makes a simple script you can use to test out that things are working. As his IDE of choice is <a href="http://www.jetbrains.com/phpstorm/">PHPStorm</a>, he shows how to set up the remote debugging to work and reply back as the script is executed.
</p>]]></description>
      <pubDate>Tue, 18 Sep 2012 10:10:01 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Miro Svrtan: Debugging Uploadify jQuery plugin with XDebug]]></title>
      <guid>http://www.phpdeveloper.org/news/18423</guid>
      <link>http://www.phpdeveloper.org/news/18423</link>
      <description><![CDATA[<p>
<i>Miro Svrtan</i> has <a href="http://www.mirosvrtan.me/blog/2012/08/debugging-uploadify-jquery-plugin-with-xdebug/">a quick tip</a> for those using the Uploadify plugin in their application's file uploads - how to enable XDebug debugging on each upload request.
</p>
<blockquote>
If you ever decided to use <a href="http://www.uploadify.com/">Uploadify</a> jQuery plug-in you might have noticed problems with debugging remote PHP code that this plugin relies on. [...] Unfortunately setting this up will not work with Uploadify Flash version since calls to remote server side is not done inside browser but inside flash plugin. [...] Few months ago I found my self blindly debugging it again and remembered that I read somewhere that xdebug parameters can be sent via GET/POST too. 
</blockquote>
<p>
He takes advantage of this fact and appends the "XDEBUG_SESSION_START" and "XDEBUG_SESSION" values in the "scriptData" handler for the Uploadify call. The XDebug session is then started when the script executes and your IDE will receive the results.
</p>]]></description>
      <pubDate>Thu, 30 Aug 2012 10:50:01 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen: Setting up PHP & MySQL on OS X 10.8 Mountain Lion]]></title>
      <guid>http://www.phpdeveloper.org/news/18422</guid>
      <link>http://www.phpdeveloper.org/news/18422</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has posted some notes to his site helping you get <a href="http://akrabat.com/computing/setting-up-php-mysql-on-os-x-10-8-mountain-lion/">PHP set up on OSX Lion (10.8)</a> successfully.
</p>
<blockquote>
With OS X 10.8, Apple continues to ship PHP 5.3 with Xdebug, PEAR, GD and PDO_MYSQL. This is how to set it up from a clean install of 10.8.
</blockquote>
<p>
He's broken it up into a few sections including the MySQL setup, Apache configuration 
, updating the main php.ini and setting up PHPUnit ("and friends") for your testing. He also includes setup instructions for the mcrypt and the PECL <a href="http://php.net/manual/en/book.oauth.php">OAuth</a> extensions.
</p>]]></description>
      <pubDate>Thu, 30 Aug 2012 09:09:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: All debugging and no testing makes the PHP programmer a dull boy ]]></title>
      <guid>http://www.phpdeveloper.org/news/18210</guid>
      <link>http://www.phpdeveloper.org/news/18210</link>
      <description><![CDATA[<p>
In <a href="http://css.dzone.com/articles/all-debugging-and-no-testing">this new post</a> on DZone.com, <i>Giorgio Sironi</i> suggests that "all debugging and no testing" in your development practices can be more difficult in the long run.
</p>
<blockquote>
By now you have already understood that I would always proposed automated end-to-end and unit tests as a way to substitute much of debugging. End-to-end tests can serve only to discover that a bug exists, while a unit test's job is instead to tell you exactly where the problem is.
</blockquote>
<p>
He advocates testing because it fits two needs - it's repeatable (a consistent, "third party" structure) and it allows you to find the pieces of code causing the issue more quickly rather than having to guess where the problem is an insert checks. He doesn't suggest completely getting rid of things like Xdebug, though. They have their place and he even suggests some configuration changes that can help make it even more effective.
</p>]]></description>
      <pubDate>Tue, 10 Jul 2012 13:06:02 -0500</pubDate>
    </item>
  </channel>
</rss>
