VSCode connect to xdebug and docker

I know vscode docker and xdebug very well. In both Windows and Fedora42. But how do I poke the prooper holes in the flatpak sandbox to have vscode work with xdebug and the container extension to connect to docker?