<?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>Fri, 24 May 2013 13:59:32 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Fabien Potencier: Debugging Silex applications just got fun]]></title>
      <guid>http://www.phpdeveloper.org/news/19156</guid>
      <link>http://www.phpdeveloper.org/news/19156</link>
      <description><![CDATA[<p>
On his site <i>Fabien Potencier</i> has <a href="http://fabien.potencier.org/article/66/debugging-silex-applications-just-got-funnier">posted about a feature added to Silex</a> to help make debugging the flow of your application "more fun" - the Symfony web profiler.
</p>
<blockquote>
One of the big advantages of both Symfony and Silex is that they are based on the Symfony HttpKernel component. [...] But handling HTTP requests with the Symfony HttpKernel also gives you a lot of free and optional features like a built-in reverse proxy written in PHP, easy handling of ESI and Hincludes (via the Fragment sub-framework), or the gorgeous Symfony web profiler.
</blockquote>
<p>
<a href="http://symfony.com/uploads/assets/profiler_timeline.jpg">The profiler</a> provides information on which components were accessed, their memory consumption and how long they took to execute. The integration happens via the <a href="https://github.com/sensiolabs/Silex-WebProfiler">WebProfiler</a> provider for Silex and is already integrated into the <a href="https://github.com/fabpot/Silex-Skeleton">Silex skeleton</a> base application.
</p>]]></description>
      <pubDate>Fri, 08 Feb 2013 11:54:38 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ruslan Yakushev: PHP Troubleshooting in Windows Azure Web Sites]]></title>
      <guid>http://www.phpdeveloper.org/news/19116</guid>
      <link>http://www.phpdeveloper.org/news/19116</link>
      <description><![CDATA[<p>
In the <a href="http://ruslany.net/2013/01/php-troubleshooting-in-windows-azure-web-sites/">latest post to his site</a>, <i>Ruslan Yakushev</i> looks at some simple ways you can debug your PHP-based applications running on a Windows Azure platform. 
</p>
<blockquote>
The need to diagnose and troubleshoot application's failures often comes up during deployment to a hosting environment. Some configuration settings in hosting server may differ from what application expects. Often it is not as easy to figure out the cause of the problem in a hosting environment as it is on a development machine.  I found the following techniques useful when troubleshooting errors in PHP applications hosted in Windows Azure Web Sites.
</blockquote>
<p>
He shares seven different tips, some pretty simple, others a bit more difficult requiring other software to be up and working:
</p>
<ul>
<li>Using <a href="http://php.net/phpinfo">phpinfo()</a>
<li>Checking the <a href="http://svn.php.net/viewvc/pecl/wincache/tags/1.1.0stable/wincache.php?view=co">wincache</a> settings
<li>Looking at your error logs
<li>Turning on the <a href="http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors">display_errors</a> setting
<li>Turning on HTTP logging, detailed errors and failed request tracking in the control panel
<li>Using <a href="http://xdebug.org">XDebug</a>
<li>Getting the statistics for your ClearDB instance
</ul>]]></description>
      <pubDate>Thu, 31 Jan 2013 10:19:16 -0600</pubDate>
    </item>
    <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[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[Derick Rethans: Debugging Connections with the MongoDB PHP driver]]></title>
      <guid>http://www.phpdeveloper.org/news/18873</guid>
      <link>http://www.phpdeveloper.org/news/18873</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has a new post that the developers out there using MongoDB in their applications will find useful - a look at <a href="http://derickrethans.nl/mongodb-debugging.html">debugging your connections</a> with the PHP driver (and what kind of information it can provide).
</p>
<blockquote>
In a previous <a href="http://derickrethans.nl/mongodb-connection-handling.html">article</a> I already mentioned that the 1.3 version of the MongoDB driver has improved logging functionality to aid with debugging connection issues. I've already briefly introduced MongoClient::<a href="http://www.php.net/manual/en/mongoclient.getconnections.php">getConnections()</a>, but it provides a bit more information than I have already shown. The other improvement are changes to the <a href="http://www.php.net/manual/en/class.mongolog.php">MongoLog</a> class.
</blockquote>
<p>
He includes details on the information that comes back from the MongoDB "getConnections" call including the hash of the connection, the "last ping" time, connection type and a set of tags. He also shows how to enable the <a href="http://www.php.net/manual/en/class.mongolog.php">Mongolog</a> logging, the levels of logging it allows and what kind of log messages you can expect it to output.
</p>]]></description>
      <pubDate>Tue, 11 Dec 2012 10:20:13 -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[PHPMaster.com: Debugging PHP Code with FirePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/18673</guid>
      <link>http://www.phpdeveloper.org/news/18673</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial showing you a different method for debugging your code than the usual <a href="http://php.net/print_r">print_r</a> or <a href="http://php.net/var_dump">var_dump</a> - <a href="http://phpmaster.com/debugging-php-code-with-firephp/">using FirePHP</a>, a tool that uses messaging to relay information back to your browser.
</p>
<blockquote>
As the technical manager of a suite of software projects, one of my duties is doing code reviews. One of the things I see far more often than I'd like when doing reviews is debugging PHP code committed and pushed up the chain. [...] The safest method of debugging requires configuring your IDE to use a tool like Xdebug or Zend Debugger to trace currently executing code. This isn't always practical. In the absence of using a fully configured debug environment, I turn to FirePHP.
</blockquote>
<p>
He shows how to set up and configure <a href="http://www.firephp.org">FirePHP</a> to work with your debugging and some suggestions on browser extensions you can install to view the messages. Sample code is included showing you how to use the tool to send messages back to the browser including grouping messages, building tables and something that shows a conditional caching report message.
</p>]]></description>
      <pubDate>Tue, 30 Oct 2012 08:36:21 -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[Derick Rethans' Blog: What is PHP doing?]]></title>
      <guid>http://www.phpdeveloper.org/news/18222</guid>
      <link>http://www.phpdeveloper.org/news/18222</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has a new post to his blog showing how you can, using a few simple unix tools, figure out <a href="http://derickrethans.nl/what-is-php-doing.html">what PHP is doing</a> when your scripts are executing.
</p>
<blockquote>
Sometimes when you have a long running PHP script, you might wonder what the hell it is doing at the moment. There are a few tools that can help you to find out, without having to stop the script. Some of these work only on Linux.
</blockquote>
<p>
He shows you how to use the following commands to track down exactly what your process is working on: strace, ltrace and gdb (a handy debugger that will probably give you more information than you're looking for). He includes some sample output for the commands and gives an example of a PHP script-to-gdb output relationship.
</p>]]></description>
      <pubDate>Fri, 13 Jul 2012 08:30:02 -0500</pubDate>
    </item>
  </channel>
</rss>
