Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Setting up XDebug on AMPPS in Mac OS X



Threaded Mode | Print  

 Setting up XDebug on AMPPS in Mac OS X, Setting up XDebug on AMPPS in Mac OS X (5 Replies, Read 35403 times)
Tyrion
Group: Member
Post Group: Newbie
Posts: 2
Status:
Hi, I'm a newbie and I'm trying to set up my Mac for PHP development. I have not been able to find clear instructions for setting up Xdebug. After some experimentation, the PHP Configuration button and the checkboxes in Php Extension stopped working. What would cause this? I then downloaded and reinstalled AMPPS and found the latest AMPPS version has the xdebug.so files in the extension directories already. However I noticed these files are half the size of the ones I found from Google. Can you please tell me how to set up XDebug ?
IP: --   

Setting up XDebug on AMPPS in Mac OS X
Tyrion
Group: Member
Post Group: Newbie
Posts: 2
Status:
I’ve finally set it up and this is what I think works:

1. Download the latest AMPPS (Nov 2013) which has the xdebug.so files for the various PHP versions.

2. Install and start AMPPS.

3. Click “PHP” then “Change PHP Version” to select your desired PHP version.

4. Click “PHP” then “Configuration” to edit the php ini file. Add the following lines above the “Dynamic Extensions” section. Here I have used “php-5.5” which must be changed to your selected version. Versions other than 5.5 may require other changes to this file. I have also left out xdebug.remote_port which defaults to 9000 and xdebug.remote_host which defaults to localhost.

Code

[XDebug]
zend_extension=/Applications/AMPPS/php-5.5/lib/extensions/xdebug.so
xdebug.remote_enable=1
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/Applications/AMPPS/tmp


5. Create a file “phpinfo.php” with the one line “<?php phpinfo(); ?>” in it and copy it to the www folder in AMPPS in Applications.

6. Start Apache from the AMPPS Control Center and click the “Local Web” icon (the globe) to open a browser window on the localhost root. Then click phpinfo.php to display the PHP configuration information.

7. Look for the following under the PHP System section.

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
    with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

and look for the xdebug section with the xdebug directives displayed.

8. Optionally, select all, copy and paste this entire page into http://xdebug.org/wizard.php

Corrections, comments, further advice, welcomed.

References:
http://xdebug.org/index.php
https://www.jetbrains.com/phpstorm/webhelp/configuring-xdebug.html
http://www.youtube.com/watch?v=GHT6DvaNY_0

IP: --   

Setting up XDebug on AMPPS in Mac OS X
mluria
Group: Member
Post Group: Newbie
Posts: 3
Status:
Thanks for including the mac osx version in ampps.  I tried upgrading to a newer version but couldn't get it to work.  Any chance you can upgrade to the newer version 2.2.5?  The version in the distribution is 2.2.3

IP: --   

Setting up XDebug on AMPPS in Mac OS X
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

Okay. We will update to latest version on xdebug in next version.

Till then, if you have xcode you can try to create a extension yourself.

Follow this post for building PHP Extensions.


-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack
IP: --   

Setting up XDebug on AMPPS in Mac OS X
clod
Group: Member
Post Group: Newbie
Posts: 1
Status:
I prefer to use Codelobster IDE to work with PHP on Mac.
IP: --   

Setting up XDebug on AMPPS in Mac OS X
chongkan
Group: Member
Post Group: Newbie
Posts: 2
Status:
This is the VSC configuration for my mac. I spent a while figuring out the correct mapping.

PHP Code

 {
    
// Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    
"version""0.2.0",
    
"configurations": [
        {
            
"name""Listen for XDebug",
            
"type""php",
            
"request""launch",
            
"port"9000
            
"pathMappings": {
                
"/Applications/AMPPS/www/myprojectA/""${workspaceRoot}",
    
            }
        }
    ]


IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 9:43 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.038