X
X
XY2017-06-11 11:53:29
PHP
XY, 2017-06-11 11:53:29

How to connect phpstorm to xdebug via ssh tunnel?

My project is deployed on a remote server, which is being worked on via ssh (you can't deploy it locally).
I need to somehow connect phpStorm to xdebug via ssh to debug the project, is it possible?
I searched through everything I can in the phpstorm settings, but I did not find anything related to ssh-xdebug.
Remote server configuration

xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_handler="dbgp"
xdebug.remote_host="127.0.0.1"
xdebug.remote_port=9001
xdebug.remote_mode=req
xdebug.idekey="PHPSTORM"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daemon23RUS, 2017-06-11
@X0Y0

Easy, ssh forward port 9001 from the remote machine to the local machine.
In PHPStorm settings specify xdebug connection to 127.0.0.1 port 9001.
Profit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question