<?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, 22 May 2012 13:26:23 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Markus Pullmann's Blog: Remote Debugging in PHP with XDebug]]></title>
      <guid>http://www.phpdeveloper.org/news/17554</guid>
      <link>http://www.phpdeveloper.org/news/17554</link>
      <description><![CDATA[<p>
<i>Markus Pullmann</i> has a new post to his blog about <a href="http://www.pullmann-is.org/2012/02/16/remote-debugging-in-php-with-xdebug/">setting up XDebug</a> in your PHP installation to help you narrow down those elusive issues more quickly.
</p>
<blockquote>
Debugging locally is a nice improvement to have no debugger at all, but in many situations there is the need to debug on production server, where the application is running on the web. There are different reasons for that, but the most important one for me is, that my local environment / installation is different from the one i have on servers in data center and bugs can be related to the environment.
</blockquote>
<p>
He walks you through the installation and server-side configuration of XDebug first then shows how to install the <a href="http://code.activestate.com/komodo/remotedebugging/">Komodo Remote Debugging Client</a> to help with multi-user debugging setups. He mentions setting up the debugging on the client/IDE side, but there's no specific instructions for any particular IDE - just how it works overall.
</p>]]></description>
      <pubDate>Fri, 17 Feb 2012 08:45:29 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Remote Debugging PHP with a Firewall in the Way]]></title>
      <guid>http://www.phpdeveloper.org/news/16779</guid>
      <link>http://www.phpdeveloper.org/news/16779</link>
      <description><![CDATA[Sometime debugging PHP applications isn't as easy as just pointing your IDE directly at the server and starting to work. <i>Derick Rethans</i> has a new post talking about one such situation, <a href="http://derickrethans.nl/debugging-with-xdebug-and-firewalls.html">remote debugging with a firewall in between</a> you and the remote machine with <a href="http://xdebug.org">XDebug</a>.
</p>
<blockquote>
The PHP debugging extension Xdebug has "remote" debugging capabilities for single-step debugging PHP applications. This works by setting your favourite IDE into listening mode and instructing Xdebug (with one of the handy browser extensions for example) to initiate debugging. [...] There could however be a firewall in the way that prevents Xdebug connecting directly to your IDE's IP address. That can be because the network you are on employs NAT. [...]  In this case, there is no way Xdebug can connect to your IDE's IP address and port. Or is there?
</blockquote>
<p>
His alternative requires <a href="http://en.wikipedia.org/wiki/Secure_Shell">SSH access</a> to the remote machine - building a tunnel from your local machine to the remote server XDebug can use to get around the firewall. He explains the shell command to set up the tunnel and, a more graphical way, through the <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">Putty</a> ssh/telnet client. A quick call to "netstat" can tell you if things are working correctly or not. All that's left then is to point your XDebug to the port on the localhost and you should be good to go on debugging.
</p>]]></description>
      <pubDate>Fri, 26 Aug 2011 11:24:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Karsten Dambekalns' Blog: PHP, Xdebug and PhpStorm - working!]]></title>
      <guid>http://www.phpdeveloper.org/news/15883</guid>
      <link>http://www.phpdeveloper.org/news/15883</link>
      <description><![CDATA[<p>
<i>Karsten Dambekalns</i> has a new post to his blog today about how he was able to get the PHP IDE PHPStorm and XDebug <a href="http://blog.k-fish.de/2011/02/php-xdebug-and-phpstorm-working.html">working together</a> to do some debugging in his application.
</p>
<blockquote>
<a href="http://www.jetbrains.com/phpstorm/">PhpStorm</a> had it's share of trouble as well [with debugging], but yesterday I experienced a working debug session. Just like that, deep variable inspection and stepping through the code just worked. Today I looked into CLI debugging because <a href="http://www.robertlemke.de/">Robert</a> needed that for some complicated <a href="http://flow3.typo3.org/">FLOW3</a> task. Also works, although it requires one step that should not be needed.
</blockquote>
<p>
He points out the environment he's using and the two methods/setups he has for debugging - working through the browser and debugging command line scripts with the same tool. Some screenshots are included to help you be sure you're in the right place to change the settings.
</p>]]></description>
      <pubDate>Thu, 10 Feb 2011 08:18:02 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Project: Kint - Advanced Output for Debugging ]]></title>
      <guid>http://www.phpdeveloper.org/news/15799</guid>
      <link>http://www.phpdeveloper.org/news/15799</link>
      <description><![CDATA[<p>
One of the more difficult parts of development is debugging. Any tool that can help make your bug finding life simpler can be valuable. <i>Raveren</i> has submitted a new tool he's developed to make outputting your debugging information more useful - <a href="http://code.google.com/p/kint/">Kint</a>.
</p>
<blockquote>
 It's basically a heavily improved var_dump and debug_backtrace version with some advanced behind the scenes action. The features description is in the google code page: <a href="http://code.google.com/p/kint/">http://code.google.com/p/kint/</a> but the interesting part is that this is the only dump tool, that can display the name of the dumped variable as well as use modifiers on the calling function.
</blockquote>
<p>
The flow is traced back to its origin class/script and a token parser is used to find where the value was created. You can see a sample of how to use it over on its <a href="http://code.google.com/p/kint/">Google Code</a> page. This also includes screenshots of the output and the configuration values you can set for things like a display path callback and the maximum number of levels to traverse through. You can download the current version <a href="http://code.google.com/p/kint/downloads/detail?name=Kint-v1.rar">here</a>.
</p>]]></description>
      <pubDate>Tue, 25 Jan 2011 08:16:09 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Four Sane Solutions for PHP Debugging]]></title>
      <guid>http://www.phpdeveloper.org/news/15388</guid>
      <link>http://www.phpdeveloper.org/news/15388</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new article from <i>Jason Gilmore</i> sharing what he calls "four sane solutions" to help you debug your PHP applications better than just an <a href="http://php.net/echo">echo</a> or <a href="http://php.net/var_dump">var_dump</a>.
</p>
<blockquote>
Few tasks are more tedious and frustrating than debugging a Web application. [...] Fortunately, PHP developers have a number of powerful debugging solutions at their disposal. Whether you're merely inspecting array contents or attempting to determine the status of an Ajax-driven POST response, these four solutions are guaranteed to have an immediate impact on your productivity.
</blockquote>
<p>
His four solutions involve changing the error reporting level on your development environment higher than production to catch issues that might slip through unnoticed, using <a href="http://xdebug.org">XDebug</a>, integrating <a href="http://www.firephp.org/">FirePHP</a> and using <a href="http://www.webopedia.com/TERM/T/test_driven_development.html">test-driven development</a> to be sure things work from the outset.
</p>]]></description>
      <pubDate>Fri, 05 Nov 2010 08:41:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Windows IIS Blog:  Debugging WINCACHE on Windows using Visual Studio - Basic]]></title>
      <guid>http://www.phpdeveloper.org/news/13734</guid>
      <link>http://www.phpdeveloper.org/news/13734</link>
      <description><![CDATA[<p>
On the Windows IIS blog today <i>Don Raman</i> <a href="http://blogs.iis.net/donraman/archive/2009/12/09/debugging-wincache-on-windows-using-visual-studio-basic.aspx">looks at debugging WinCache</a> (the Windows caching tool with hooks into PHP) with Visual Studio - Basic in the FastCGI version on IIS.
</p>
<blockquote>
I am planning to write a series of blog post which will be helpful in debugging WINCACHE. This is just the beginning. So please be patient and forgive me if some of the posts sound for novice user. All my post will assume that you are debugging PHP CGI running under IIS using FastCGI. This means using the non thread safe version of PHP/WINCACHE and IIS running PHP files successfully. I believe the same can be applied to thread safe version of WINCACHE/PHP running under Apache but I do not guarantee that.
</blockquote>
<p>
He mentions his build environment, what you'll need as far as software to debug and the WinCache source to build from. He includes brief instructions on building WinCache (vis Visual Studio) and how to set up the debugging for the PHP CGI. You can then attach the debugger in Visual Studio to the CGI instance and keep a watchful eye on it. You could also use the <a href="http://www.microsoft.com/whdc/devtools/debugging/installx86.Mspx">Windows Debugging Tools</a> to do most of the same work.
</p>]]></description>
      <pubDate>Mon, 28 Dec 2009 11:51:39 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Douglas Clifton's Blog: PHP Specificity Part IV: Debugging]]></title>
      <guid>http://www.phpdeveloper.org/news/11973</guid>
      <link>http://www.phpdeveloper.org/news/11973</link>
      <description><![CDATA[<p>
<i>Douglas Clifton</i> has <a href="http://loadaveragezero.com/app/s9y/index.php?/archives/163-PHP-Specificity-Part-IV-Debugging.html">the next part</a> of his "PHP Specificity" series posted today - a brief look at debugging in PHP applications.
</p>
<blockquote>
In this fourth installment of the PHP Specificity series I'm going to break from the theme of content management packages momentarily and get into a topic that is not so dear to the programmer's heart. <a href="http://loadaveragezero.com/app/drx/Programming/Languages/PHP/Debugging">Debugging</a> is a necessary evil and can be painful at times. But the reward, when it happens, is that <a href="http://loadaveragezero.com/vnav/labs/PHP/eureka.php">eureka</a> moment when you find the bug and squash it.
</blockquote>
<p>
He mentions two helpful tools - <a href="http://dd.cron.ru/dbg/">DBG</a> (though dead?) and the very popular <a href="http://loadaveragezero.com/app/drx/Programming/Languages/PHP/Debugging#xdebug:debugger">XDebug</a> that includes a profiler with Cachegrind output.
</p>]]></description>
      <pubDate>Wed, 18 Feb 2009 11:13:31 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Five reasons why the shut-op operator (@) should be avoided]]></title>
      <guid>http://www.phpdeveloper.org/news/11672</guid>
      <link>http://www.phpdeveloper.org/news/11672</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has posted <a href="http://derickrethans.nl/five_reasons_why_the_shutop_operator_@_should_be_avoided.php">just a few of the reasons</a> why the "shut-up operator" (the @ symbol) should be avoided at all costs in your PHP applications.
</p>
<blockquote>
The @-operator is often used to silence errors in noisy PHP functions'"functions that generate warnings that can not be easily prevented. [...] In those cases, there is no way how to check up-front whether the function call will not issue a warning when being called.
</blockquote>
<p>
There are side effects to using the operator, however, including hiding legitimate errors and making debugging that much more difficult. To back up his point, he includes four other reasons to avoid the operator's use (besides the debugging issues):
</p>
<ul>
<li>It's slow (part 1)
<li>It's slow (part 2)
<li>It's slow (part 3: It generates crappier code)
<li>Apfelstrudels were harmed (related to the strudel_token in the C code for the operator)
</ul>]]></description>
      <pubDate>Mon, 05 Jan 2009 12:09:37 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Zend Platform Event Debugging]]></title>
      <guid>http://www.phpdeveloper.org/news/10351</guid>
      <link>http://www.phpdeveloper.org/news/10351</link>
      <description><![CDATA[<p>
The Zend Developer Zone as <a href="http://devzone.zend.com/article/3585-Zend-Platform-Event-Debugging">posted</a> a new screencast from Zend about the event debugging functionality offered with their Zend Platform product.
</p>
<blockquote>
Zend Platform is a powerful tool both in development and in production. [...] One of the cool features of it is the Event Debugger. Here's a short screencast that demonstrates how it works and how it integrates with <a href="http://www.zend.com/en/products/studio/">Zend Studio for Eclipse</a>.
</blockquote>
<p>
The screencast is only about three and a half minutes long, but they cram a lot of screenshots and output results into that time. <i>Cal Evans</i> himself does the narration.
</p>]]></description>
      <pubDate>Thu, 05 Jun 2008 13:47:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Havard Eide's Blog: Leopard and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9418</guid>
      <link>http://www.phpdeveloper.org/news/9418</link>
      <description><![CDATA[<p>
<i>Havard Eide</i> is <a href="http://phpvolcano.com/blog/index.php?/archives/285-Leopard-and-PHP.html">asking for your help</a> in a new entry to his blog. He's looking for ways to speed up his development in Eclipse, specifically in the debugging.
</p>
<blockquote>
There is one thing I do need over everything else: remote debugging. Having used Zend Studio for 3 years now it hasn't been the best editor ( I'd rather prefer PHPEclipse/PDT ) but the remote debugging facility is superb [...] Eclipse it has all the tools you need to develop with but the debugging is slow, way too slow!
</blockquote>
<p>
He's looking for anyone out there that might be able to help him speed up the debugging on his Leopard-installed version of Eclipse ("So slow actually that I had to install Zend Studio 5.5 for whenever I have to debug a file...")
</p>]]></description>
      <pubDate>Mon, 14 Jan 2008 12:08:00 -0600</pubDate>
    </item>
  </channel>
</rss>

