News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Robert Basic's Blog:
Debugging two PHP projects in Netbeans at the same time
August 19, 2011 @ 08:26:40

Robert Basic has posted a quick hint for Netbeans users on how they can debug two (interlinked) projects at the same time in the same debugger instance.

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.

The fix is pretty simple, if a bit manual - simply place xdebug_break 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 their site.

0 comments voice your opinion now!
debug project netbeans xdebug tutorial xdebugbreak


blog comments powered by Disqus

Similar Posts

David Coallier's Blog: Translating JAWS from PHP4 to PHP6 (Woo I'm a mentor)

Sandro Groganz's Blog: Saving CMS Consultants from Being Beaten Up

Zend Developer Zone: OSCON '07 Wrapup

SitePoint PHP Blog: Unit Testing with GuzzlePHP

DevShed: Generating Web Pages in Multiple Languages with a PHP IP-to-Country Mapping Application


Community Events





Don't see your event here?
Let us know!


symfony introduction release laravel library podcast update package install community deployment language tips series zendserver opinion interview framework list api

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework