Google chrome 使用VSCode WSL Remote,为什么赢了';Chrome调试器启动Chrome for Windows?
我正在为一个JavaScript项目切换到VSCode WSL远程模式。Chrome调试器扩展总是在Linux中查找Google Chrome。这是正确的行为吗 我在WSL中安装了Chrome for Linux,可以在X服务器上运行。问题是断点不起作用 我尝试在WSL中删除Chrome,然后扩展将抛出Google chrome 使用VSCode WSL Remote,为什么赢了';Chrome调试器启动Chrome for Windows?,google-chrome,visual-studio-code,windows-subsystem-for-linux,vscode-debugger,vscode-remote,Google Chrome,Visual Studio Code,Windows Subsystem For Linux,Vscode Debugger,Vscode Remote,我正在为一个JavaScript项目切换到VSCode WSL远程模式。Chrome调试器扩展总是在Linux中查找Google Chrome。这是正确的行为吗 我在WSL中安装了Chrome for Linux,可以在X服务器上运行。问题是断点不起作用 我尝试在WSL中删除Chrome,然后扩展将抛出找不到Chrome-安装它或在启动配置中设置“runtimeExecutable”字段 我应该将“runtimeExecutable”设置为chrome.exe还是强制它在本地运行 "remote
找不到Chrome-安装它或在启动配置中设置“runtimeExecutable”字段
我应该将“runtimeExecutable”设置为chrome.exe
还是强制它在本地运行
"remote.extensionKind": {
"msjsdiag.debugger-for-chrome": "ui",
}
我是否可以更正一些配置,以便在没有安装Linux的情况下,Chrome调试器可以在Windows中找到Chrome
有官方的指南吗
谢谢 是的,您应该设置
"remote.extensionKind": {
"msjsdiag.debugger-for-chrome": "ui"}
另一种方法是在Windows中设置别名chrome
以转到chrome.exe。要确保持久性,请将其添加到~.bashrc
或shell等效程序中,或者添加到.profile
中
旁注:如果您喜欢使用新的基于铬的边缘,您也应该能够使用它进行调试