Follow these instructions for PHP provided with Mac OS X to phpize
Xdebug source, configure, build and install the PHP Xdebug extension.
Download Xdebug For Xampp
By joining Download.com. Mac Apps for Debugging Filter. Profiling and analysis tool for php and xdebug. MacCallGrind Intel Video Pro Analyzer Free. Xdebug 3.1.0beta2. Release date: 2021-09-07. Linux, macOS: source. Windows binaries: PHP 7.2 VC15 (64 bit) PHP 7.2 VC15 (32 bit) PHP 7.2 VC15 TS (64 bit) PHP 7.2 VC15 TS (32 bit). If you find Xdebug useful, please consider supporting the project. Xdebug is an extension for PHP, and provides a range of features to improve the PHP development experience. Step Debugging A way to step through your code in your IDE or editor while the script is executing. XDebug Helper for Google Chrome. Debugging, profiling and tracing PHP code with Xdebug is very powerful, but enabling Xdebug with cookies or adding POST/GET variables is way too hard. This extension will help you to enable/disable debugging, profiling and tracing of your PHP-code easily. Ctrl+Shift+X (Cmd+Shift+X on Mac) opens the popup.
- On Mac OS X Mojave, use the Xdebug extension included with the system in
/usr/lib/php/extensions/no-debug-non-zts-20160303
.
Xdebug Download Os X
Download the latest version of Xdebug.
In order to be able to debug your PHP scripts, you will need have Xdebug extension installed on your server. See here for installation instructions. Below is a configuration template for php.ini/xdebug.ini, be warned if you are on a Live environment, remoteconnectback allows every debug request from any source to be accepted.
Verify that PHP is installed. e.g.,
Extract the downloaded Xdebug tarball as described in the earlier instructions above. e.g.,
Run phpize
from within the extracted Xdebug source directory. e.g.,
If the Xcode commandline tools are not installed, phpize
outputs missing include file messages. You can install the Xcode commandline tools using the CLI. e.g.,
If the Xcode commandline tools are already installed and/or you still get the missing include files message, force a reinstall of the commandline tools header files. e.g.,
Retry running phpize
from within the extracted Xdebug source directory. e.g.,
Download Xdebug For Windows
Configure Xdebug.
Build Xdebug.
Starting with OS X 10.11 El Capitan, system files and processes are protected with System Integrity Protection (SIP). Since /usr/lib/php/extensions
write operations are not permitted with SIP enabled, install the Xdebug extension under the /usr/local
. e.g.,
Update the /private/etc/php.ini
file to load the Xdebug extension. e.g.,
- If
/private/etc/php.ini
does not exist, PHP is using the default settings. Copy the/private/etc/php.ini.default
sample configuration file to/private/etc/php.ini
and update it to customize PHP settings.
Verify
If you get the following error message in the output, use the Xdebug extension provided with the system in
/usr/lib/php/extensions/no-debug-non-zts-20160303
Failed loading /usr/local/php/extensions/xdebug.so: dlopen(/usr/local/php/extensions/xdebug.so, 0x0009): code signature in (/usr/local/php/extensions/xdebug.so) not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
Remote Debugging
Enable remote debugging by adding the following xDebug settings at or near the bottom of the php.ini
file.