Xdebug Firefox Addons
I've always found that the Xdebug firefox extension is good tool to have when you are doing a debugging session with Xdebug. There is one missing feature that I'd like to have from it though, starting the Xdebug profiler.
The author of the extension said that feature will come on the next version, but the new version never came. And so with time in my hand I went to look at the code myself, and as it turns out it's not that hard to add the feature I'd like.
And presto, the updgraded extension came along. I thought I'd share this extension to whoever read this. I'm still hoping the original author will upgrade the extension soon, so this is only a temporary hack until it arrives.
What I've done basically added another button on the status bar to trigger the Xdebug's profiler. Just like the remote debugging click on the 'P' icon to start/stop the profiler. Make sure that you've put these line on your php.ini to make it work.
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=1
The updated extension is below, you might want to uninstall the original extension first. Please note that I've only checked this on Firefox 2.0.0.11 on Windows, but it should work where the original Xdebug extension is working. All credit goes to the original author of the extension, Denis Orlikhin.
Let's hope that new version of Xdebug is coming along.

Add new comment