phpstorm xdebug port (63342, 9000 and so on) is busy
Can't make it work.... !
phpstorm 2017.2, Apache/2.4.29 (Win64) PHP/7.1.11, Win 10
php.ini:
[Xdebug]
zend_extension=php_xdebug-2.5.5-7.1-vc14-x86_64.dll
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.profiler_enable=1
xdebug.profiler_output_dir="Profiler\tmp"
xdebug.remote_host = "estat.dev"
xdebug.idekey="PHPSTORM"







Please sign in to leave a comment.
Hello,
How did you find out that the ports are busy? Were there any error messages?
Do you really use DBGp proxy? Its port should be different from usual Xdebug port.
Hello,
TCP 127.0.0.1:9000 0.0.0.0:0 LISTENING
If it's help: when I stop/start listening there are no any messages only when I press Debug Button.
Best regards, JStar.
> TCP 127.0.0.1:9000 0.0.0.0:0 LISTENING
WHO is listening?
"-na" switch is not enough. Add "o" and "b" options as well (e.g. "netstat -naob"). "b" will tell what the executable is using it, "o" will tell it's process id.
>I don't know what DGBproxy is even. (This was on the video on youtube).
Please do not configure it (especially if you did not even read what that is). In any case -- it would not work for 2 reasons: 1) it requires activation (IDE must register at proxy) which is a separate/additional action and 2) DBGp Proxy itself is another dedicated software which has to be installed separately.
netstat -naob :
TCP 127.0.0.1:9000 0.0.0.0:0 LISTENING 6488
[phpstorm64.exe]
How delete DGBproxy settings? If I erase settings IDE complains "proxy port is invalid".
Possible reasons:
1) You may already have another copy PhpStorm running.
2) You have entered that 9000 port number in another place where you should not have.
>How delete DGBproxy settings? If I erase settings IDE complains "proxy port is invalid".
Leave port number as 9001 (default value) and empty the other text fields.
1. Yes It "listening". There is no second copy running.
2. Yes I did. I've switched 9000 to 9002... and Debugger takes off!!!!
Thanks a lot for your help.
>I've switched 9000 to 9002... and Debugger takes off!!!!
Where? in "Settings/Preferences | Build, Execution, Deployment | Debugger"?
You should not have changed those settings in first place .. as it has _nothing_ to do with PHP debug. Please change the port number there to default 63342 (would prevent from additional "WTF" on "why 9002 is doing here and what it does" in the future)
I wonder where have you seen about changing that port number there and in what context? For the future - check these tutorials/how-tos and official help pages first.