![]() ![]() I had trouble with setting up MAMP Pro and nginx myself and the above answer did not work for me. If you already have cachegrind output files you should be able to select the file in the “Auto (newest)” dropdown or leave it select at Auto and click update which will reveal the profile data Visit webgrind url setup on your local MAMP installation. Setup Webgrind host on MAMP to run Webgrind Continue for steps on setting up with webgrind. Webgrind is a simple web based application that you can run locally on MAMP and it will look for the cachegrind.out files automatically with just one click. I went the simple route and used webgrind. Apps like KCacheGrind (Linux/Windows, KDE), WinCacheGrind (Windows), xdebugtoolkit, and Webgrind. #PHP ENABLE XDEBUG AMPPS MAC MAC OS#Now you can use any app that understands those cachegrind.out files to view the profile data. Installing AMPPS 4 Installing on Windows Installing on Mac OS Installing on Linux Upgrade AMPPS 3.x to AMPPS 4. You can open the ‘/tmp’ directory in finder by opening the terminal and running open /tmp Open your ‘/temp’ directory and run one of your PHP files to make sure it is working correctly. If you used the same settings that I have above, when you run PHP code, Xdebug will put the cachegrind.out files in your ‘/tmp’ directory. Doing a search in the browser window for “Xdebug” makes this easy. Check to make sure that Xdebug is running. ![]() Some things to keep in mind: It is written for the official PHP docker image on Docker Hub (using the docker-php-ext-xdebug. To enable it again, the file is copied back. Open MAMP’s WebStart page and navigate to PHPInfo tab. Upon restart of the app container, PHP loads completely without xdebug. Save edited template and close edit window Now when you have errors, if they are sent to standard out, you will see something like this If you don’t want profile output and just want xdebug running then use DONT REMOVE: MAMP PRO php5.3.6.ini template compatibility version: 1 Zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" Edit the template file via File -> Edit Template -> PHP -> PHP php.iniĮdit bottom of php.ini template file so that it ends up looking like if you want profile output #PHP ENABLE XDEBUG AMPPS MAC INSTALL#Softaculous auto installer is also included with AMPPS which enables you to install 400+ apps like WordPress, Joomla. Installing and updating these packages is just one click. Here's the tutorial that helped me:Įdit php.ini template file through MAMP to enable the extension. AMPPS is a bloat-free local development stack with PHP, MySQL, Apache and Softaculous.AMPPS supports all the latest versions of PHP, Apache and MySQL. Since release of MAMP 2.01 XDebug is already included. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |