<?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 00:31:05 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Phil Sturgeon's Blog: Power dump() on your PHP applications]]></title>
      <guid>http://www.phpdeveloper.org/news/15211</guid>
      <link>http://www.phpdeveloper.org/news/15211</link>
      <description><![CDATA[<p>
<i>Phil Sturgeon</i> has <a href="http://philsturgeon.co.uk/news/2010/09/power-dump-php-applications">a quick new post</a> with a code snippet that could make your debugging life a bit simpler - a "dump" function that can give you a bit more information about your error than a standard <a href="http://php.net/var_dump">var_dump</a>.
</p>
<blockquote>
When trying to work out what the hell is going wrong in your PHP application the first thing most of us start doing is madly start var_dump()'ing everything possible to work out where the problem is. var_dump() is fine, but by default it comes out in one line. So then we need to echo &lt;pre> tags. Then we can't always see whats going on, especially if the background is black and bla bla bla so it goes on.
</blockquote>
<p>
He mentions an alternative like XDebug, but that also requires access to install it on the server. His alternative, the "dump" function, catches the error, pulls out a backtrace of the path your script took to get there and echoes it out with the line number of the error and filename.
</p>]]></description>
      <pubDate>Thu, 30 Sep 2010 11:04:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: PHP's segmentation faults GDB-fu]]></title>
      <guid>http://www.phpdeveloper.org/news/11167</guid>
      <link>http://www.phpdeveloper.org/news/11167</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has <a href="http://derickrethans.nl/phps_segmentation_faults_gdbfu.php">shared a quick tip</a> for locating a code crashing kind of problem with your application when something like XDebug isn't around.
</p>
<blockquote>
However, because we as PHP developers are lazy, provide a few GDB tricks to make this easier. First of all, it's only really going to work if you haven't stripped the symbols from your PHP and Apache binaries. Secondly, you still need to have the PHP source lying around somewhere.
</blockquote>
<p>
He suggests using GDB to run the backtraces and create a file to help you track down the infinite recursion problem that could be giving you issues. 
</p>]]></description>
      <pubDate>Wed, 08 Oct 2008 09:32:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Pierre-Alain Joye's Blog: How to generate backtraces on windows without compiler]]></title>
      <guid>http://www.phpdeveloper.org/news/8019</guid>
      <link>http://www.phpdeveloper.org/news/8019</link>
      <description><![CDATA[<p>
In a <a href="http://blog.thepimp.net/index.php/post/2007/06/10/debug-pack-or-how-to-generate-backtrack-on-windows-without-compiling">new tutorial</a> posted to his blog today, <i>Pierre-Alain Joye</i> shows how to generate backtraces on a Windows machine without the need for a compiler installed.
</p>
<blockquote>
How to get a back trace on windows without having to compile PHP has been an impossible task for many of us. The difficulty was to first succeed to compile php (given that you have a visual C++ installed). If you are in the middle of a bug hunting session, no need to say that setting up a windows build system is the last thing you like, especially if it is your first time. Thanks to <a href="http://edin.dk/">Edin</a>'s window binary and MS Diagnostic Debug , it is now possible to have a backtrace in a couple of clicks.
</blockquote>
<p>
To <a href="http://blog.thepimp.net/index.php/post/2007/06/10/debug-pack-or-how-to-generate-backtrack-on-windows-without-compiling">use the method</a> you will need a few pieces of software to help out but all are available for free. Next up are the steps to get things set up (simple) and the creation of the backtrace to catch the error, complete with screenshots for the whole way. The end result is a nice, pretty error message output to the browser (Internet Explorer) that also dumps the backtrace for you to use.
</p>]]></description>
      <pubDate>Mon, 11 Jun 2007 11:08:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[J. Scott Johnson's Blog: Your PHP Command of the Day - debug_backtrace()]]></title>
      <guid>http://www.phpdeveloper.org/news/5157</guid>
      <link>http://www.phpdeveloper.org/news/5157</link>
      <description><![CDATA[<p>
<i>J. Scott Johnson</i> shares, in <a href="http://fuzzyblog.com/archives/2006/04/11/your-php-command-of-the-day-debug_backtrace/">this new blog post</a>, about a handy little function that any PHP developer out there would do well to remember when it comes to debugging their code - debug_backtrace.
</p>
<quote>
<i>
When you're massively and rapidly refactoring a code base, mere hours before a demo* and you utterly and completely hose yourself then just plain trot out <a href="http://us2.php.net/debug-backtrace">debug_backtrace()</a> and whammo! Your debugging problems go away!
</i>
</quote>
<p>
<a href="http://us2.php.net/debug-backtrace">This function</a> generates a backtrace from the function it's inside, making it easy to tracke backwards the path that the data's taking to get to that location. Very handy for tracking down which functionality it is that's causing the issues...
</p>]]></description>
      <pubDate>Wed, 12 Apr 2006 06:57:04 -0500</pubDate>
    </item>
  </channel>
</rss>
