vmware-tanzu / tanzu-toolkit-for-visual-studio

Apache License 2.0
10 stars 3 forks source link

Pushing app marked for debugging hangs #362

Closed andrew-woosnam closed 2 years ago

andrew-woosnam commented 2 years ago

Selecting the "Configure for remote debugging" option in the deployment dialog causes the app deployment to hang:

image.png

This occurs specifically in an Azure test vm built with the Visual Studio 2022 image

andrew-woosnam commented 2 years ago

Best guess is that this is happening in environments that don't trust the downloaded "GetVsDbg.ps1" script.

This seems likely, based on the recent observation in #360 that this test VM doesn't trust (refuses to execute) the recently-included cf-ssh.ps1 script.

This theory is backed up by the hanging behavior; the last line of output printed came from DotnetCliService.PublishProjectForRemoteDebuggingAsync (line) -- this method includes a call to wait for the powershell script to finish executing (line). Once that finishes, the installation script (GetVsDbg.ps1) should be deleted, but we see that script still present in the file system during the hang:

image.png