Answer the question
In order to leave comments, you need to log in
How to use xdebug on a remote server?
upd: added php tag, because began to write about js
Greetings.
There is a problem, I can not set up work with xdebug on a remote server. I use it locally all the time, but here it was required on a remote server.
At first I followed the standard scheme with phpstorm.
There is a local project directory, there is a remote deployment directory via sftp.
Installed xdebug on the server, configured the config.
In the storm, I chose php web page, indicated the server. And there is an obvious problem here.
My server is https and the storm substitutes http. If you want to specify a mapping, the storm sends you far and for a long time.
In deploy https works fine. But for some reason it didn’t work with debugging.
Well, I think, let's try to set up vscode.
Here I ran into two problems at once.
Answer the question
In order to leave comments, you need to log in
A universal approach regardless of the remoteness of the server:
1. Set up xdebug.ini on the remote server :
xdebug.remote_enable=on
xdebug.remote_connect_back=on
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question