Issue description:
After upgrade to Azure Functions for Visual Studio Code 1.19.1, Java debug is not working for local BaaS Service testing. This is an issue in Azure Functions for Visual Studio Code 1.19.1.
When starting Run and Debug, a dialog states "Failed to attach to remote debuggee VM. Reason: java.io.IOException: Failed to attach to [localhost:port] (attach timeout 30000, handshake timeout 0)".
Workaround:
There are active bug reports for this in the Microsoft forums, and the preferred solution is to downgrade Azure Functions for Visual Studio Code version to 1.19.0:
- In Extensions, locate Azure Functions.
- Click the drop down next to "Uninstall" and select "Install Specific Version".
- Select 1.19.0.