Azure / Azure/azure-functions-powershell-worker

ConvertTo-SecureString hangs PowerShell host when run in the VS Code debugger

Open
#259 11 comments 1 reaction 1 assignee Claimed by @TylerLeonhardt View on GitHub
Dominant language
C#
Stars
215
Forks
61
Avg merge
21h 4m
Merged PRs (30d)
6

Description

If you run the below code without using Wait-Debugger then it will run correctly without issue:

```
param($Request, $TriggerMetadata)

Wait-Debugger
$EncryptString = "eamon"
Write-Output $EncryptString

$TestSecure = ConvertTo-SecureString -String $EncryptString -AsPlainText -Force

$TestSecure
```

If you run it with Wait-Debugger enabled, it will not complete and hang in VSCode.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.