blog

MacGDBp – A Neat PHP Debugger for Mac Users

by

MacGDBp – A neat PHP debugger for Mac users
MacGDBp is a nifty Mac application by Blue Static (http://www.bluestatic.org) for debugging PHP web applications. MacGDGp works with the Xdebug extension and is very easy to set up. Like any other debugger, MacGDBp provides the ability to step through each line of PHP code and allows setting up of breakpoints very easily. Here’s a screen shot of the main window.
Image
MacGDBp also allows inspection of variables during debugging in a separate HUD window. This is useful for when variable values are long enough to not display fully in the main debugger window.
Image
I have been happily using it on PHP projects.
The only problem I have run into (and as is mentioned on the Blue Static web site) is setting up Xdebug with the built-in version of PHP on Mac OS X. However, I now use MAMP for PHP development and installing Xdebug in MAMP was a breeze for me. If you use MAMP on the Mac for creating PHP applications, you will find this tool very handy unless you are already set up for debugging with alternate methods.
MacGDBp claims to work well for debugging a remote server but I have not used it in this scenario yet.
The source for MacGDBp is also available so if you want to enhance it to suit your needs, you can!

+ more

Accurate Timing

Accurate Timing

In many tasks we need to do something at given intervals of time. The most obvious ways may not give you the best results. Time? Meh. The most basic tasks that don't have what you might call CPU-scale time requirements can be handled with the usual language and...

read more