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

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,002 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,577 questions
0 comments No comments
{count} vote

Your answer

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