To debug a test running against Google Chrome or Mozilla Firefox in a Docker container, you can use the debug images for Google Chrome or Mozilla Firefox that are available from the Docker Hub. These will enable you to view the text execution through a VNC connection.