Friday, February 15, 2008

XDebug Firefox Addon for Profiling and Debugging

This is a quick enhancement I wrote for Firefox...
   http://www.night-ray.com/xdebug-helper-0.2.xpi

Based upon the original code here:
   https://addons.mozilla.org/en-US/firefox/addon/3960

Enjoy!

PS. To view xdebug profile dumps use WinCacheGrind or KCacheGrind

7 comments:

Derick said...

Great, I added a link to this post here: http://xdebug.org/docs/remote#browser_session

Gordon McKinney said...

Thanks! Much appreciated!

Cédric said...

Very useful extension!

I'm using it with Firefox 2.0.0.12, Xdebug 2.0.2 (compiled for PHP 5.2), and PhpEclipse as a client.

It's working when I choose 'default' as the ide key, but not with anything else.

Configuring Xdebug, Php, PhpEclipse, and Firefox for debugging is sometimes hard to get right the first time, so I'm wondering whether this is a misconfiguration on my part with PhpEclipse or Xdebug, or could it be a bug in the firefox extension? (not saving the ide key)

Cédric said...

Ok forget my previous comment, I managed to change the idekey. I think my problem was that even if you change the idekey, the cookie don't get the new value. So I guess I should delete the cookie, or wait for it to expire for the new idekey to work.

Gordon McKinney said...

The cookie expires after 1hr or when you make it 'grey'. I also believe you have to restart the browser. Since the IDE key doesn't need to change, once you have it working it won't be a problem.

Adam said...

Thanks for this extension. Could you possibly add some keyboard bindings? It would me much faster to switch between states...

Gordon McKinney said...

I'm not a FF extension developer, I hacked the existing script to make it work better.

If you do enhance the add-on I'd be more than happy to update my copy and continue to share it.