powershell debugging on vscode on macOS

Paresh Mhetre 5 Reputation points
2024-02-18T08:10:55.6566667+00:00

Hi I newly started learning powershell. I want to write script. I installed visual studio code(1.86.0) on my macOS (14.2.1). I have also installed vscode extention of powershell. Powershell is installed on the terminal and works fine but I am not able to debug and run it as i get below output.

18/02/2024 12:51:51 [ERROR] - Unable to find PowerShell! Do you have it installed? You can also configure custom installations with the 'powershell.powerShellAdditionalExePaths' setting.>
18/02/2024 12:51:51 [ERROR] - PowerShell session unavailable for debugging!
18/02/2024 13:22:05 [ERROR] - Unable to find PowerShell! Do you have it installed? You can also configure custom installations with the 'powershell.powerShellAdditionalExePaths' setting.

Screenshot 2024-02-18 at 13.34.59

Developer technologies | Visual Studio | Debugging
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} vote

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.