【发布时间】:2018-02-26 22:02:09
【问题描述】:
我遇到了一种情况,我正在使用 64 位版本的 Visual Studio Code 来编写/调试 powershell 脚本。但是,由于 Powershell 脚本的作用,它需要在 32 位版本的 Powershell 中运行。它使用一些库来访问 MS Access 文件,所以我还没有找到一种方法来让事情在 Powershell x64 中工作。
如果 VS Code 本身以 64 位运行,有没有办法告诉 VS Code 运行 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}"
},
...
]
}
【问题讨论】:
标签: powershell visual-studio-code