It seems that the cwd option in an attach launch configuration has no effect. I use docker-compose to run rdbg --open --port ... in a Docker container. When I run the corresponding attach launch configuration, rdbg tries to start the script in a folder that matches the vscode project folder on the host instead of the container's folder on which the project folder is mounted. Setting cwd to the container's folder has no effect. If the project's folder is mounted on an identically named folder (full path) in the container, it all works.