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 ?
Related
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"
I configured Xdebug in php.ini and I see it in phpinfo().
And I see the Xdebug version in Interpreter I have XAMPP v3.2.2 in Windows 10.
I attach some pictures to explain what I have.
Please help me how can I make PhpStorm stop at breakpoints?
My php.ini
[XDebug]
zend_extension="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_host="127.0.0.1"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_autostart=1
xdebug.profiler_enable=1
;xdebug.remote_connect_back=1
Interpreters
Languages & Frameworks>PHP>Debug
Try to change xdebug.remote_host="localhost:8081" to xdebug.remote_host=localhost. You already specified the port in xdebug.remote_port, so the host setting must contain only host name.
Also check that port 9000 is really held by PHPStorm. There can be a conflict with PHP FPM, because it uses the same port by default.
When i tried to debug file it's hold's on 48% and comuniacate wrote says: Waiting for Xdebug session...
I am trying to get xdebug working with Eclipse Neon.1a / php (on xampp windows 7). I have verified that xdebug is enabled in phpinfo(); I have remote_debug=On.
I have installed xdebug with https://xdebug.org/wizard.php hints.
My php.ini file:
[xdebug]
zend_extension=/path/to/xdebug.so(.dll)
xdebug.remote_enable=On
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9001
xdebug.remote_host=localhost
xdebug.remote_log=/path/to/xdebug_remote_log
xdebug.remote_connect_back=1
I tried to use remote_port=9000 but problem doesn't perish.
In php.ini i have also commend:
zend_extension = D:\Serwer\xampp\php\ext\php_xdebug-2.4.1-7.0-vc14.dll
i tried to coment one line of zend_extension or another.
I have good settings in eclipse xdebug settings.
This is my first post on forum please be tolerant :)
you need to check the xdebug_remote_log, I got the same issue.
I: Connecting to configured address/port: 127.0.0.1:19006.
E: Time-out connecting to client. :-(
this is the error printed by xdebug.
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
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"