I want to raise an issue as we are unable to debug powershell scripts on a remote machine since we upgraded to version 2020.4.2.
Octopus.Action.PowerShell.DebugMode is Set to True.
Then create the release in Octopus.
Navigate to the logs of deployment execution, you should be able to see the Hostprocess and runspace details to attach PowerShell ISE to allow debug.
RDP the target server, Open PowerShell ISE and enter the HostProcess and runcpace details.
Before the upgrade, it used to get in the script which we are intended to debug, with post deployment we see the script been getting executed but not allowed to debug. It allows to debug only the Bootstrap powershell scripts.
Is this a known issue?
And as I mentioned this worked fine before we upgraded to 2020.4.2.