Skip to content

debug: allow remote attaching while running inside Docker containers

Robert Dyer requested to merge psybers/pitivi:remote-attach-docker into master

Fixes #2639 (closed)

When running a Docker container with a Pitivi developer environment, passing the flag -p 5678:5678 maps the container's debug port to the host. Then you can run PITIVI_VSCODE_DEBUG=1 pitivi as usual, it will wait for a debugger to attach, and in VSCode you should be able to properly attach as expected.

Without this patch, VSCode tries to attach, gives no error, and immediately shows nothing running/attached.

I confirmed this works on my environment, using the Docker image from https://github.com/psybers/pitivi-dev-docker and running on VSCode 1.74.3.

Merge request reports

Loading