D
D
Dmitry Morozov2016-03-16 15:37:10
PHP
Dmitry Morozov, 2016-03-16 15:37:10

Remote debug PHPStorm + xDebug + sshfs. How to create a project correctly?

I tunneled to the server xdebug, mounted the remote server on the local machine via sshfs. And everything would be fine, but I can’t set up a project or create one. If I select the "remote web server, files via sftp" setting, then it creates a project, then hangs for about 10 minutes, and eventually starts copying files from the server to the local machine for some reason.
If I choose a local web server, then everything is sad, there is no debug icon, although the php debug settings are made.
If I choose that the files are stored locally, and then set up the web server, then just do everything is sad.
I can't find a proper manual. Help plz.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
OnYourLips, 2016-03-16
@saytik

You are doing something random.
These two phrases contradict each other.
In the first case, the client is a dev machine, and in the second, it is a remote machine. These are different things.
Naturally, nothing will work with this approach.
You need to set up a normal workflow, and not invent perversions and try to fight them.

A
Alexey Skobkin, 2016-03-16
@skobkin

+ sshfs

I hope you understand that these are different things?
So not done if it doesn't work. But in the case of remote debugging, in the simplest case, you need to have a white IP and a port forwarded on the router. Or forward the port via SSH. Or set up a debug proxy.
See above.
There will never be a ready manual for each configuration. Take similar manuals, see how everything works, delve into it, combine it to suit your version.
In general, why do you need to debug a remote server via ssh?

D
Dmitry Morozov, 2016-03-16
@saytik

Moreover, I would like to work with MacGdBp, but for some reason it stops at the beginning, and not at the breakpoint. Although in the settings the checkbox is unchecked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question