If you want to follow https://code.visualstudio.com/docs/setup/linux#_debian-and-ubuntu-based-distributions, and are using ansible to manage your PPAs, keyrings, etc ...
With the latest change to the extension (this? #4696), debugpy no longer attaches to the func app running locally (confirmed on Windows and WSL Ubuntu 24.04) ...