【发布时间】:2019-03-21 08:41:54
【问题描述】:
我在 Windows 上运行 Visual Studio Code,但在 WSL/bash 上运行我的 (NodeJS/TypeScript) 应用程序。但是,我不能让 VS Code 调试控制台使用 bash。好像还在用cmd.exe。
我可以通过在 Visual Studio Code 中运行我的应用程序来测试这一点,然后在调试控制台中输入 process.platform。它显示win32。
另一方面,终端确实使用 bash.exe。
我已将 terminal.integrated.shell.windows 和 terminal.external.windowsExec 设置为 C:\\Windows\\System32\\bash.exe。
如何让 VS Code 在调试控制台中使用 bash?
【问题讨论】:
标签: bash debugging visual-studio-code windows-subsystem-for-linux