Disable XDebug temporary while using BlackfireIO

BlackfireIO and XDebug are not the best friends because the last one can affect the precission of the profile results. So it’s recommended to disable XDebug while using BlackfireIO to get the best results.

blackfire

I just rename the XDebug’s config file and restart Apache to do so:

$ sudo mv /opt/local/var/db/php56/xdebug.ini /opt/local/var/db/php56/xdebug.ini.bak
$ sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper restart

And when I’m finished with BlackfireIO I put it back:

$ sudo mv /opt/local/var/db/php56/xdebug.ini.bak /opt/local/var/db/php56/xdebug.ini
$ sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper restart

You might also like

Install and activate xdebug in MacPorts
First install php5-xdebug:sudo port install php5-xdebugThen just add these in your php.ini (probably...

Debug console PHP applications with NetBeans
Assuming you already have PHP and NetBeans configured to debug code using XDebug, these are the steps...

“Uncaught exception ‘ErrorException’ with message ‘proc_open(): fork failed” with composer
I got this error while updating with composer:PHP Fatal error: Uncaught exception 'ErrorException'...

Disable and enable Spotlight
Disable:$ sudo mdutil -a -i offEnable:$ sudo mdutil -a -i on...

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.