![]() ![]() The name and version of the debugging engine associated with the selected PHP installation (Xdebug or Zend Debugger). ![]() The version of the selected PHP installation. The CLI Interpreters dialog that opens shows the following: The list shows all the PHP installations available in PhpStorm, see Configure local PHP interpreters and Configure remote PHP interpreters. On the PHP page, choose the relevant PHP installation from the CLI Interpreter list and click next to the field. Press Control+Alt+S to open the IDE settings and then select PHP.Ĭheck the Xdebug installation associated with the selected PHP interpreter: Visit webgrind url setup on your local MAMP installation.Configure Xdebug in PhpStorm Check Xdebug 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. Now you can use any app that understands those cachegrind.out files to view the profile data. 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. Open MAMP’s WebStart page and navigate to PHPInfo tab. 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 Here's the tutorial that helped me:Įdit php.ini template file through MAMP to enable the extension. Since release of MAMP 2.01 XDebug is already included. This is a bit of an old thread but hopefully this will help someone eventually :) if XDebug had said file=/mysrver/my/code/lives/here/on/my/actual/server/file.php, then in step 6 you would have noticed the file didn't exist on the server, and then you might realize "oh oops I spelled myserver wrong in the path mapping", and fixing the spelling in PHPStorm would then probably fix the issue.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |