azure-functions-powershell-worker icon indicating copy to clipboard operation
azure-functions-powershell-worker copied to clipboard

Enable remote debugging for PowerShell Function apps

Open Francisco-Gamino opened this issue 6 years ago • 4 comments

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.

Francisco-Gamino avatar Jan 08 '20 20:01 Francisco-Gamino

The work to enable this for the Node worker is being tracked by https://github.com/Azure/azure-functions-host/issues/5344.

Francisco-Gamino avatar Jan 08 '20 21:01 Francisco-Gamino

cc @pragnagopa

Francisco-Gamino avatar Jan 08 '20 21:01 Francisco-Gamino

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...

JustinGrote avatar Jan 09 '20 03:01 JustinGrote

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

pragnagopa avatar Jan 10 '20 18:01 pragnagopa