Enable remote debugging for PowerShell Function apps
Remote debugging for C# functions apps is possible via Visual Studio. This work item is to track and figure out what pieces need to be enable to support this for PowerShell function apps.
The work to enable this for the Node worker is being tracked by https://github.com/Azure/azure-functions-host/issues/5344.
cc @pragnagopa
It seems to me trying to use any of the native c# stuff would be difficult, instead I would follow the PSES/VSCode Powershell Extension's lead and use the powershell host to trigger a debug, but rather than a pipe like PSES/VSCode uses it could be a remote session that shows up in the log with an IP, and then you can attach a debugger using the normal remote powershell methods. This might be difficult due to the sandbox restructions of app service however...
FYI:
- Remote debugging tools for java functions: https://www.npmjs.com/package/cloud-debug-tools
- More docs: https://code.visualstudio.com/docs/java/java-azurefunctions#_remote-debugging