I have gone through all the questions with this title, but I am still stuck here.
Here is my php.ini conf settings
[xdebug]
zend_extension=/usr/lib/php/20151012/xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.show_local_vars=0
xdebug.var_display_max_data=10000
xdebug.var_display_max_depth=20
xdebug.show_exception_trace=0
xdebug.idekey="xdebug"
xdebug.remote_log="/tmp/xdebug.log"
here is phpinfo()
here is PhpStorm server config
PhpStorm xdebug config
Now if I submit the request in debug mode in PhpStorm REST client, I get this error.
Waiting for incoming connection with ide key '19853'
I don't know how else to fix this.
Related
I'm trying to connect PhpStorm and debug PHP scripts/webpages with Xdebug, something I've done several times.
This is my php.ini file (the interesting bit):
[xdebug]
zend_extension=C:\xampp\php\ext\php_xdebug.dll
xdebug.remote_enable=1
xdebug.remote_port=10000
xdebug.remote_mode=req
I set multiple breakpoints and called xdebug_break() on my index but code execution is not stopping at them.
This is the PhpStorm validation script output for Xdebug:
The output of netstat which shows that PhpStorm is listening on port 10000:
Change
from
xdebug.remote_enable=1
xdebug.remote_port=10000
xdebug.remote_mode=req
into
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_port=10000
Change the lines in the php.ini to
xdebug.mode=debug
and set the port on PhpStorm to listen on 9003 instead of 9000.
In xdebug v3 the default xdebug port was changed to 9003:
https://xdebug.org/docs/upgrade_guide#Step-Debugging
I am literally freaking out because of this.
I tried every possible setting, but I can't get this to work.
I tried with 4 different Firefox extensions and with Google Chrome. Xdebug won't work, my PhpStorm Debugger window keeps saying:
waiting for incoming connection with ide key 'xxxxx'
(xxxxx is a random number, it changes with every debug, the last was 10131)
My php.ini located in C:\xampp\php\php.ini
[Xdebug]
zend_extension = C:\xampp\php\ext\php_xdebug-2.4.0-5.6-vc11.dll
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey='phpstorm'
xdebug.profiler_enable=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_enable_trigger_value=1
xdebug.trace_enable_trigger=1
xdebug.trace_enable_trigger_value=1
xdebug.remote_log=c:/xampp/tmp/xdebug/xdebug_remote.log
I tried changing the port number from 9000 to 9001 for example, no chance.
No xdebug log file is created at all.
PhpStorm Settings:
I tried different configurations, too, but no chance. Please help me.
i'm already two days trying to configure the notepad ++ DBGp debug plugin and its still not working.
I already search a lot of internet site's but no succes.
My setup is the following:
I have my pc:
with notepad ++ installed on.
and i have a windows server running with iis7 and has the following ip :10.83.A.B
On the windows server i installed Xdebug in the php.ini file:
zend_extension = C:\PHP\ext\php_xdebug-2.2.5-5.5-vc11-nts.dll
[PHP_XDEBUG-2.2.5-5.5-VC11-NTS]
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=10.83.A.B
xdebug.remote_port=9000
xdebug.remote_log="C:\inetpub\wwwDevelop\logs"
xdebug.idekey=debug
if i check phpinfo the Xdebug module is showed.
the DBGp configuration on my laptop in notepad is the following;
Remote Server : 10.83.A.B
IDE KEY : debug
Remote Path:\\SERVER-NAME\inetpub\wwwDevelop
Local Path:\\SERVER-NAME\inetpub\wwwDevelop
I had the same situation, adding in all the following got it working for me. Substituting paths of course. Perhaps you're missing an important one...
zend_extension = C:\PHP\ext\php_xdebug-2.2.5-5.5-vc11-nts.dll
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_mode=req
xdebug.idekey=default
xdebug.remote_log="D:/www/ourcommunity.dev/log/xdebug.log"
xdebug.remote_port=9000
xdebug.show_exception_trace=0
xdebug.show_local_vars=9
xdebug.show_mem_delta=0
xdebug.trace_format=0
i am trying to debug my php code in netbeans. the code runs perfectly but i am unable to debug it(doesn't stop at breakpoint) and the code runs normally.
i have tried every possible workaround in order to get my xdebug working and has been stuck from past few days.. anyone out there who can help me sort out this issue.
xdebug configuration in .ini file:
zend_extension = /usr/lib/php5/20090626/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=mgiplocalhost
xdebug.remote_port=9000
here mgiplocalhost is my virtual host.
i have tried with other possibilities as well like localhost and ip address but the waiting for connection still exists.
In netbeans->tools->options->debugging when i set my port as 9000 and debug it asks me to change the port since port 9000 is already in use. i have changing the port but the problem persist.
please i need help to sort it out asap. please help me out.
A bit late but thought this should have an answer! To get Xdebug working, the minimal configuration I found I needed in the php.ini file was the line to load the extension:
zend_extension=php_xdebug.dll (pointing to the downloaded dll from the Xdebug site)
And the following Xdebug settings also placed further down in the php.ini file:
[Xdebug]
xdebug.remote_autostart=On
xdebug.remote_enable=On
xdebug.idekey="netbeans-xdebug"
The Xdebug default port was 9000, and that is also what Netbeans was using (Tools -> Options... -> PHP -> Debugging.) If 9000 is in use, you could also set that in Netbeans to be 9001 and in the php.ini file add the line xdebug.remote_port=9001 with your other xdebug settings.
Then try it out after restarting the server.
I've been trying to configure xdebug to work along with netbeans, my current configuration is
[xdebug]
zend_extension="C:\binaries\php\ext\php_xdebug-2.1.0RC1-5.3-vc6.dll"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1 (also tried localhost)
xdebug.remote_port=9000
xdebug.idekey="netbeans-xdebug"
I tried the test provided by a netbeans blog explaining how to test if the configuration works when binding it just outputs "unable to bind"
Any suggestions?
A couple of things off the top of my head...
Firstly, check that nothing else is already listening to port 9000 (on the command line, type netstat -an ).
If that doesn't show anything, make sure the Windows Firewall is not enabled.
This was my Solution for the same issue.
The Configuration of xdebug in the php.ini is minimalized.
php.ini:
[XDebug]
zend_extension = C:\Bitnami\wampstack-5.6.21-2\php\ext\php_xdebug.dll
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001
xdebug.remote_autostart=0
xdebug.remote_connect_back=0
Right click Project > Run configuration:
Project URL: http://127.0.0.1:9000/<ProjectName>/
Index File: index.php
Tools > Options > PHP > Debugging
Debugger Port: 9001
Session ID: netbeans-xdebug
Maximum Data Length: 2048
uncheck all Checkboxes
The Debugger Port has to be another than the Server Port. The Ports defined in netbeans have to match the one defined in php.ini(xdebug-port) and httpd(apache-port)
Server: 127.0.0.1:9000
XDebug: 127.0.0.1:9001
Close netbeans and restart the server, open Netbeans and press CTRL+F5 (Run Debug).
This worked For Ubuntu 16.04, Net beans 8.2
open xdebug.ini (for me it was in /etc/php/{php-version}/mods-available) and put
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
Net beans -> Tools > Options > PHP > Debugging
Debugger Port: 9000
Session ID: netbeans-xdebug
Maximum Data Length: 2048
unchecked all Check-boxes here.
My configs were just fine as mentioned above but it wasn't working fine until i unchecked all check-boxes as mentioned by #Beka.