PhpED and dockers |
Site Admin
|
You can debug php inside docker if you can ssh into the container. In this case treat it as a remote server.
|
||||||||||||
_________________ The PHP IDE team |
|
Thanks dmitri,
The docker in question is for api-platform https://api-platform.com/docs/distribution/#using-the-api-platform-distribution-recommended. I was unsuccessful attempting to ssh into it.
I am, however, able to access it using docker. uname -r tells me I am running alpine but for unknown reasons cat /proc/version reports redhat. I expect that the docker is not running a ssh server and added it but the docker doesn't seem to recognize rc-update.
Is there another way to use PHPed to debug it? Maybe somehow using docker exec -it 7cc9567859e1 /bin/sh? Thanks |
||||||||||||||||
|
Site Admin
|
Basically "debug" means a) adding certain debugger request that contains connection point to reach the IDE and b) providing network connectivity to that point.
Debugger is looking for request in cookie, environment, command line arguments, GET query variable and POST variable. See examples here http://www.nusphere.com/kb/technicalfaq/faq_dbg_related.htm Note that it includes either real host name as a connection point or "clienthost" construct that tells Debugger to look into REMOTE_ADDRESS variable and try to connect back to it. It's easy to use SSH port forwarding and "localhost:7869" as a connection point which SSH would forward back to the IDE host. So it's not only about reaching file system or shell in the docker, it's more about connectivity, but if you can connect them in another way, like through NAT(s) or with special IPTable entries on the hosting OS, it may work too. |
||||||||||||
_________________ The PHP IDE team |
PhpED and dockers |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by