I have installed PS tools and PS pro tools for Visual Studio 2017 and was hoping that I could use VS to both edit and also run and debug powershell scripts, however so far I have not found the way to run and debug a single Powershell script from inside VS 2017. Is this feature available at all within PS tools for VS 2017 or I am just expecting too much?
I’ve done work on C# modules in Visual Studio, but the preferred software for Powershell currently is Visual Studio Code, not the full Visual Studio:
Code allows you to use F8 to execute code similar to the Powershell ISE with a Powershell emulator already attached.
See this discussion and answer.
Create the file C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe.config:
And view this video …
PowerShell Tools for Visual Studio 'youtube.com/watch?v=eRILgGQb_hQ'