I want to debug with PHPstorm IDE and xdebug my site in the server. Locally works perfectly, but when i want configure to debug from the server i can't.
I installed xdebug in the server, with this configuration:
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_handler=dbgp
xdebug.remote_host=MY IP
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM
Then i setup in PHPSTORM in "Edit Configurations" a "PHP remote debug" and a "Server"
In the server i put:
Name: xxxx
Port: 80
Host: Url of my site
Debugger: Xdebug
I checked "Use Path Mapping" and in File/Directory i put my local proyect path "/home/mysite"
In "Absolute path on the server" i put the path in the server where are the proyect: "/var/www/html/mysite"
In the "PHP remote debug" i put:
Name: xxxx
Servers: the server created previously
IDE key: PHPSTORM
With these settings did not work. I use Chrome with the extension Xdebug with Ide key PHPstorm enable.
What is lacking me to work?