When attempting to debug a PowerShell script using the option to give VSC an argument, despite the type of data entered be it numeric or string I receive the following error.
"Command PowerShell.SpecifyScriptArgs did not return a string result. Only strings are supported as results for commands used for variable substitution."
The window then gives the option to "Open launch.json" or cancel.
I am running VS Code 1.24.1 with PowerShell extension version 1.7.12. I am running PowerShell v.5.
In the launch.json file I removed the section pertaining to arguments and recreated it using whatever json code generator is built in. No change in results after that.
Any help would be greatly appreciated.