我有一个情况,我正在使用64位的Visual Studio Code编写/调试powershell脚本。然而,由于powershell脚本正在处理的内容,它需要在32位的Powershell版本下运行。它正在使用一些库来访问MS Access文件,因此我尚未找到在Powershell x64中使事情正常工作的方法。
是否有一种方法可以告诉VS Code在64位下运行时运行32位的Powershell?例如,我可以修改launch.json文件以指定powershell本身的路径吗?
是否有一种方法可以告诉VS Code在64位下运行时运行32位的Powershell?例如,我可以修改launch.json文件以指定powershell本身的路径吗?
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File",
"script": "${file}",
"args": [],
"cwd": "${file}"
},
...
]
}