Set up PHP remote debugging with XDebug and an IDE — `xdebug.remote_host` / `remote_port` plus an SSH tunnel pattern.
I am writing a blog post about how to deploy an application that uses a private Git repository as a submodule to AWS Amplify.
Expose the Selenium Chromium / ChromeDriver `--remote-debugging-port` (CDP port) outside the container for external clients to connect.