Xdebug installed on Mac Native apache - php

I am trying to get XDEBUG up and going but having trouble getting the cookie to show. Below is what is put in my php.ini file. I restarted apache. I did a phpinfo() call and I do see xdebug enabled and the settings set. But when I do a localhost/?XDEBUG_SESSION_START=1 I am expecting to see a Cookie set to 1 in my browser right ?
zend_extension ="/usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
xdebug.remote_enable=1
xdebug.profiler_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.profiler_output_dir="/tmp"
when I run php -m I do not see it but I do see it in phpinfo

couldnt figure the exact answer but I went and downloaded the php.ini.default file from repo and set the following in the php ini
zend_extension ="/usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
xdebug.remote_enable=On
xdebug.remote_host=localhost
xdebug.idekey=foo
xdebug.profiler_enable=On
and it worked. could of been because of remote host. who knows. it worked. this is the bare minimum configurations for mac and this is if your going by the follwing installations for xdebug on mac
http://kubyshkin.ru/posts/installing-php-xdebug-extension-on-mac-os-x-10-7-lion.html

Related

configure xdebug for php 7.1.28

I configure xdebug by flowing https://xdebug.org/wizard.php, and I'm pretty sure that I used the right phpize(/opt/lampp/bin/phpize-7.1.28), and after I compile, I put it in /opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so, here is the part of my /opt/lampp/etc/php.ini :
[XDebug]
xdebug.remote_enable=1
xdebug.remote_port=9000
zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so
Then, I restart my apache server, when I check out phpinfo, there is still no xdebug.
BTW, is there any possible that my php version can not be configured with xdebug, because I noticed that the extension directory is no-debug-non-zts-20160303

MAMP: enabling xdebug won't work - can't find php.ini

I have MAMP 4.5 on a Macbook High Sierra.
I just tried to enable xdebug, mainly to make var_dump() look more readable... and I was trying to get the orange-looking Errors.
I had this on another Computer before but can't get it working this time.
My active PHP Version is 7.2.1. (which php info tells me:
phpinfo tells me, /Applications/MAMP/bin/php/php7.2.1/conf/php.ini
)
I can find the php.ini file in /Applications/MAMP/bin/php/php7.2.1
but the other php.ini file I need to edit, which should be in /Applications/MAMP/conf/php7.2.1 is not there - the latest Folder is php7.1.12 - and editing this is not doing anything.
I have the following settings (in both files):
display_errors = On
[xdebug]
zend_extension="/Applications/MAMP/bin/php/php7.1.12/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/Applications/MAMP/tmp"

“Waiting For Connection (netbeans-xdebug)” OSX XAMPP

Xdebug (2.4.0) is not working on NetBeans (8.2) on OSX (10.13.2) using XAMPP (7.0.26-0).
I've just installed all these and just trying out test file, but it shows
“Waiting For Connection (netbeans-xdebug)”
No break points work.
I have these code on php.ini, there is no Additional .ini files parsed
zend_extension = "/usr/local/Cellar/php70/7.0.26_18/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_host=192.168.0.9
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_autostart=On
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"
xdebug support => enabled shows when I run php -i on command line.
I read many other thread but no luck so far. Anyone have any suggestions ?

Xdebug for netbeans and XAMPP not working

I am trying to debug php code using Netbeans but I am unable to, it keeps showing Waiting for connection just like the image below and it stays like that.. I have opned the php.ini and found no xdebug so I added the following lines after installing xdebug and placing it in the path mentioned below.. please let me know what could the issue be .. i am out of ideas ...
[XDebug]
; Note that profiler is enabled separately.
zend_extension="C:\xampp\php\ext\php_xdebug-2.5.0-7.0-vc14-x86_64"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_autostart=0
xdebug.remote_connect_back=0
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=0
xdebug.profiler_output_name=cachegrind.out.%s.%t
xdebug.profiler_output_dir="C:/WampDeveloper/Temp/xdebug"
xdebug.trace_output_dir="C:/WampDeveloper/Temp/xdebug"

Netbeans - XDebug Debugging

I have setup a new dev environment using windows for the first time. I have WAMP installed and I am using netbeans as my IDE and have XDebug installed and reference in my php.ini file.
; XDEBUG Extension
zend_extension = "c:/wamp/bin/php/php5.4.12/zend_ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll"
which points to my xdebug.dll file.
When I try to debug within netbeans however, it is not stopping on any of my breakpoints. Any ideas of how to get it correctly debug by stopping at my breakpoints? Also just to verify that i am going to the page in question with my firefox browser so its not that I am not running the code
I added the following to my php.ini file and now debugging is stopping on my breakpoints in netbeans
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"

Categories