I am to run PowerShell scripts in Visual Studio Code with F5.
My Visual Studio Code version is 1.50.1 with commit d2e414d9e42
I get the following error message:
Cannot debug or run a PowerShell script until the PowerShell session has started. Wait for the PowerShell session to finish starting and try again.
I installed the official Microsoft PowerShell extension and my launch.json includes the following:
{
"name": "PowerShell: Launch Script",
"type": "PowerShell",
"request": "launch",
"script": "countcharacters.ps1",
"cwd": "${workspaceFolder}"
}
How can I make debugging work with F5?

