Azure / azure-functions-powershell-worker

PowerShell language worker for Azure Functions.
MIT License
205 stars 53 forks source link

Enable remote debugging for PowerShell Function apps #375

Open Francisco-Gamino opened 4 years ago

Francisco-Gamino commented 4 years ago

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 commented 4 years ago

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

Francisco-Gamino commented 4 years ago

cc @pragnagopa

JustinGrote commented 4 years ago

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

pragnagopa commented 4 years ago

FYI: