Xdebug with XAMP

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Xdebug with XAMP

Postby gigiogigo » 15. October 2015 13:04

Hello,

First of all thank you everyone for your help.

I have been struggling with the installation of xdebug for a while, and it has been very hard and at the end impossible. I have OSX 10.11 El Capitan and XAMP 5.6.3-0.

After fighting for a while I have understood somethings, the Mac comes with a apache server already installed so things like "phpize" get called from the mac version instead for the Xampp, but the real point is, right now I have installed debug (it comes with Xamp, yes finally I discovered this) but when it's called throws this error (/Applications/XAMP/xamppfiles/logs/error_log)
Code: Select all
Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Retinas at http://xdebug.org/docs/faq#api for a later version of Xdebug.

The problem I think is going on here (maybe I'm wrong) is that the server is calling zend from the Mac server (which is outdated and I don't use) instead of the xampp one, but probably I'm wrong.

Could someone help me please?

Thank you very much
gigiogigo
 
Posts: 3
Joined: 15. October 2015 12:25
Operating System: Mac OSX

Re: Xdebug with XAMP

Postby gigiogigo » 19. October 2015 18:30

¿Could someone provide support for this?

If people really wants to use XAMPP with PHP they need Xdebug for sure, and normal tutorials don't work, thank you very much.
gigiogigo
 
Posts: 3
Joined: 15. October 2015 12:25
Operating System: Mac OSX

Re: Xdebug with XAMP

Postby Nobbie » 19. October 2015 19:52

gigiogigo wrote:If people really wants to use XAMPP with PHP they need Xdebug for sure


Obviously, "they" do not need Xdebug. Your request is the only one, but there are thousands of Xampp installations out there.

Many (very many) people are using Xampp only as a plattform for local installations like WordPress, Joomla etc.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Xdebug with XAMP

Postby Altrea » 19. October 2015 20:06

Use the correct version of xDebug => http://xdebug.org/wizard.php

But much more important than choosing the correct Debugger is chossing the correct IDE.
PHPstorm for example works very well with Zend Debugger and you will not miss xDebug.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Xdebug with XAMP

Postby GabbyTee » 23. October 2015 00:49

XAMPP 5.6.12-0 worked for me. It includes right xdebug.so file.

Add this to your php.ini:

Code: Select all
[Xdebug]
zend_extension="/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.show_local_vars=1
xdebug.remote_log=/Applications/XAMPP/logs/xdebug.log


And restart your apache:

Code: Select all
sudo /Applications/XAMPP/xamppfiles/xampp restartapache
GabbyTee
 
Posts: 1
Joined: 23. October 2015 00:42
Operating System: Mac OSX 10.11

Re: Xdebug with XAMP

Postby gigiogigo » 23. October 2015 17:30

@GabbyTee I almost can say I do love you haha. Since I modified xdebug after it didn't work I just have done a fresh install and changed the lines I did three thousand times before (the ones you told me), and got the correct answer with phpinfo().

Thank you very much all of you for your answers, and thank you another time Gabby, thank you a lot.
gigiogigo
 
Posts: 3
Joined: 15. October 2015 12:25
Operating System: Mac OSX


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 8 guests