Xdebug Mac Download

  1. Xdebug Helper
  2. Xdebug Mac Download Windows 10

Check that XDebug works in NetBeans

Xdebug

On Windows, you need to download a binary. Unless you have installed Xdebug with a package manager on Linux, you also need to add the following line to your php.ini file, or create a new Xdebug specific ini file xdebug.ini in the conf.d directory. In either case, it needs the following line added: zendextension=xdebug. Xdebug: A powerful debugger for PHP. This setting controls which Xdebug features are enabled. This setting can only be set in php.ini or files like 99-xdebug.ini that are read when a PHP process starts (directly, or through php-fpm), but not in.htaccess and.user.ini files, which are read per-request.

Open any project. Click on the menu item Debug -> Debug Project (or use ctrl-F5 on Windows or CMD-5 on a Mac).

Look at the bottom of the NetBeans window. If you see “netbeans-xdebug running” then you’re ready to go. You should see a “NetBeans Connector” is debugging this tab in your browser and then in the code editor within Netbeanns the first line of code should be highlighted.

If you do not get the above you may have to configure NetBeans or replace XAMPP with MAMP or vice versa.

  1. Start by going to https://xdebug.org/wizard.php and copy and paste the output of phpinfo() into the textbox. Follow the instructions as to what xdebug file to download and where to put it. Make sure you download the xdebug dll and save it to the correct location and add the zend_extension line to the php.ini file. NOTE for Mac users! If it instructions indicate you need to build XDebug (look for a lot of instructions and not a simple download this dll file) you can try the pre-build version I’ve placed in Laulima -> Resources -> XDebug_for_Mac

Xdebug Helper

instructions for XDebug NetBeans for Mac

Xdebug Mac Download Windows 10

Xdebug Mac DownloadXdebug
  1. Locate your XAMPP php.ini file and open it in a text editor such as TextEdit. You may need to run this as administrator or change its file permissions. It’s probably in /Applications/XAMPP/etc but you can check the output of phpinfo() to be sure

  2. Find the line output_buffering=4096 and change it to output_buffering=Off.

  3. Put the following after the line you added to load the zend_extension dll (from above)

Download
  1. Restart Apache and look at the output of phpinfo(). Search for xdebug in the webpage and you should find the following: and

  2. Try the debugger in NetBeans

instructions for XDebug NetBeans for Windows

  1. Locate your XAMPP php.ini file and open it in a text editor such as Notepad. It’s probably in C:XAMPPphp but you can check the output of phpinfo() to be sure. You can also use the XAMPP control panel and click on the Config button then select php.ini

  2. Add the following after the zend_extension line you added (e.g. zend_extension = C:xamppphpextphp_xdebug-2.5.4-7.1-vc14.dll)

  1. Restart Apache and look at the output of phpinfo(). Search for xdebug in the webpage and you should find the following: and

  2. Try the debugger in NetBeans

If you do not get the above to work you may have to configure NetBeans or replace XAMPP with MAMP or vice versa.