Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8276135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:17:21+00:00 2026-06-08T08:17:21+00:00

I am trying to set up xdebug on mamp pro with no success. I

  • 0

I am trying to set up xdebug on mamp pro with no success. I searched all over the internet, nothing helped me.

First I have tried just to uncomment the following line in php.ini:

zend_extension=”/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so”

Next, I’ve tried the wizard:
http://xdebug.org/wizard.php

Next, I’ve tried adding these lines to php.ini:

xdebug.default_enable=1

xdebug.remote_enable=1

xdebug.remote_handler=dbgp

xdebug.remote_host=localhost

xdebug.remote_port=9000

xdebug.remote_autostart=1

Nothing helps. I can’t see xdebug in my phpinfo.

MAMP PRO Version: 2.1.1

PHP Version: PHP 5.4.4

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:17:22+00:00Added an answer on June 8, 2026 at 8:17 am

    Since release of MAMP 2.01 XDebug is already included.

    Solved. Here’s the tutorial that helped me:

    1. Start MAMP

    2. Edit php.ini template file through MAMP to enable the extension. Edit the template file via File -> Edit Template -> PHP -> PHP php.ini

      edit php.ini template for mamp on mac osx

    3. Edit bottom of php.ini template file so that it ends up looking like if you want profile output

      [xdebug]
      zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
      xdebug.profiler_enable = 1
      xdebug.profiler_output_dir = "/tmp"
      ; DONT REMOVE: MAMP PRO php5.3.6.ini template compatibility version: 1
      

      If you don’t want profile output and just want xdebug running then use

      [xdebug]
      zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
      xdebug.profiler_enable = 0
      xdebug.profiler_output_dir = "/tmp"
      ; DONT REMOVE: MAMP PRO php5.3.6.ini template compatibility version: 1
      

      Now when you have errors, if they are sent to standard out, you will see something like this

      My php.ini file:

      edited php.ini file to run xdebug on mamp mac osx

    4. Save edited template and close edit window

    5. Restart MAMP

    6. Open MAMP’s WebStart page and navigate to PHPInfo tab. Check to make sure that Xdebug is running. Doing a search in the browser window for “Xdebug” makes this easy.

      confirm xdebug running on mamp on mac osx

    7. 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. Open your ‘/temp’ directory and run one of your PHP files to make sure it is working correctly. You can open the ‘/tmp’ directory in finder by opening the terminal and running

      open /tmp
      

      cachegrind.out output in /temp folder for mamp on mac osx

    8. Now you can use any app that understands those cachegrind.out files to view the profile data. Apps like KCacheGrind (Linux/Windows, KDE), WinCacheGrind (Windows), xdebugtoolkit, and Webgrind.  I went the simple route and used 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. Continue for steps on setting up with webgrind.

    9. Download Webgrind

    10. Setup Webgrind host on MAMP to run Webgrind

      Setup webgrind as host on mamp to process xdebug php profile output

    11. Visit webgrind url setup on your local MAMP installation. Mine was simply webgrind/

    12. 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

    13. Throw a celebratory fist pump

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to set up debugging using XDebug in Eclipse for the
Trying to set-up a git server on my local dev machine and have been
I'm trying to set up XDebug for PHP. I edited some settings in my
first of all, sorry for my english (I'm from Spain) I'm trying to connect
Trying to set up a cassandra cluster, but it tells me that I have
been trying to set up a webserver with uk2.net all day but i keep
Trying to set up a time card at work in Excel, have dates going
Im trying set the single table inheritance model type in a form. So i
Trying to set up a self signed certificate, for our intranet's web services site.
Trying to set it so if a certain condition is met then one of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.