EDU
EDU

Reputation: 11

PhpStorm never stops at breakpoints with Xdebug

I try to config PhpStorm to work with Xdebug on remote server. With Xdebug hosted on localhost with WAMP it's worked.

I've used Putty to tunnel port 9000 from my remote server, telnetting is working, I get the black screen.

Xdebug configuration is as follow:

zend_extension = /usr/lib64/php/modules/xdebug.so
xdebug.remote_enable = 1
xdebug.remote_host="127.0.0.1"
xdebug.remote_autostart =1
xdebug.remote_enable =1
xdebug.remote_port=9000

Whenever I press debug on PhpStorm I it stucks on "connecting to localhost:3308" for some reason.

I use ‪Xdebug helper‬ 1.6.1 in Chrome 63. On my server I use Xdebug 2.6 with PHP Version 7.1.10. I use PhpStorm 2017.3.1.

EDIT 1: it seems that the log is not opened at the server side here is the log:

Log opened at 2017-12-26 11:11:31
I: Connecting to configured address/port: 127.0.0.1:9009.
W: Creating socket for '127.0.0.1:9009', poll success, but error: Operation now in progress (29).
E: Could not connect to client. :-(
Log closed at 2017-12-26 11:11:31

Log opened at 2017-12-26 11:11:31
I: Connecting to configured address/port: 127.0.0.1:9009.
W: Creating socket for '127.0.0.1:9009', poll success, but error: Operation now in progress (29).
E: Could not connect to client. :-(
Log closed at 2017-12-26 11:11:31

Log opened at 2017-12-26 11:11:31
I: Connecting to configured address/port: 127.0.0.1:9009.
W: Creating socket for '127.0.0.1:9009', poll success, but error: Operation now in progress (29).
E: Could not connect to client. :-(
Log closed at 2017-12-26 11:11:31

Log opened at 2017-12-26 11:11:31
I: Connecting to configured address/port: 127.0.0.1:9009.
W: Creating socket for '127.0.0.1:9009', poll success, but error: Operation now in progress (29).
E: Could not connect to client. :-(
Log closed at 2017-12-26 11:11:31

Log opened at 2017-12-26 11:11:31
I: Connecting to configured address/port: 127.0.0.1:9009.
W: Creating socket for '127.0.0.1:9009', poll success, but error: Operation now in progress (29).
E: Could not connect to client. :-(
Log closed at 2017-12-26 11:11:31

telnetting locally to port 9009 is refused.

Does anyone knows why it doesn't work?

Upvotes: 0

Views: 997

Answers (1)

Anastasia
Anastasia

Reputation: 325

Change port to 9009 and do not forget to chane this setting in PhpStorm

Upvotes: 2

Related Questions