<?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 01:33:16 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Robert Basic's Blog: Debugging two PHP projects in Netbeans at the same time]]></title>
      <guid>http://www.phpdeveloper.org/news/16741</guid>
      <link>http://www.phpdeveloper.org/news/16741</link>
      <description><![CDATA[<p>
<i>Robert Basic</i> has posted a <a href="http://robertbasic.com/blog/debugging-two-php-projects-in-netbeans-at-the-same-time/">quick hint for Netbeans users</a> on how they can debug two (interlinked) projects at the same time in the same debugger instance.
</p>
<blockquote>
I'm currently working on some Symfony2 bundles and I have one Netbeans project for the main Symfony2 app and one project for the bundle. [...] The debugger starts for the "main" project, which is the Symfony2 app, but setting breakpoints with Netbeans (y'know, by clicking the line number) for the bundle doesn't really work, as those are in the other project and not in the debugged one, rendering the whole debugging useless. 
</blockquote>
<p>
The fix is pretty simple, if a bit manual - simply place <a href="http://xdebug.org/docs/all_functions#xdebug_break">xdebug_break</a> calls in your code anywhere to tell the debugger to stop there. It's not as friendly and automatic as just clicking in the IDE, but it gets the job done. For more information on Xdebug, see <a href="http://xdebug.org">their site</a>.
</p>]]></description>
      <pubDate>Fri, 19 Aug 2011 08:26:40 -0500</pubDate>
    </item>
  </channel>
</rss>
