Judging from the Debugging Azure Functions
https://docs.microsoft.com/en-us/azure/azure-functions/functions-debug-powershell-local, it looks possible. Can somebody post a detailed example?
Let's say we have pipeline that run the Build.ps1. The script installs other PS
modules builds my Visual studio solution and creates the installer.
The installer part breaks so I guess I have to use a Wait-Debugger
before it and try to somehow attach to the agent powershell process. But oi am not certain how to do it.