I've done these steps:
- Setup remote server for deployment in PhpStorm.
- Setup docker server by SSH.
- Setup file map.
- Setup CLI Interpreter with remote docker.
- Map port 9003 from container to remote host, and forward this port by SSH to localhost.
Issues:
- "Run" test script not work with server + docker PhpStorm shows
Could not open input file:/my/t.phpmessage. I've tried changing path mapping topath/to/local/script,path/to/remote/script,path/to/docker/scriptand this did not do anything... - "Validate Xdebug" did not worked because this validator creates a test file, uploads it to the server and try run the script. But my server run scripts from directory
/pub/but if I set this directory for upload script, PhpStorm adding/pub/to the URLhttp://test.remote/puband get answer 404 - I've tried to enable
Listen for debug connection, enableed Xdebug extension in Google Chrome and set breakpoint on the first line, but connection was not established. Not working, I've checked 9003 port and it is allowed... - I've tried to create
test.phpto try debugging a CLI script, but this doesn't work too, see point 1 "run" not working.
Software versions:
- PhpStorm - 2021.3
- PHP - 7.4
- Xdebug - 2.9.8
P.S. Sorry for my English.
P.P.S. I can't find manual how to setup PhpStorm, Xdebug with remote server in docker ((
publicfolder).telnet(or alternative) can help here (it can simply tell if a connection was successful or not)