这篇文章上次修改于 1934 天前,可能其部分内容已经发生变化,如有疑问可询问作者。 >Error processing "launch": Error: Can't find Chrome 1.完整报错 ```bash Error processing "launch": Error: Can't find Chrome - install it or set the "runtimeExecutable" field in the launch config. at Object.errP (/home/shenfeng/.vscode/extensions/msjsdiag.debugger-for-chrome-4.11.3/node_modules/vscode-chrome-debug-core/out/src/utils.js:262:13) at ChromeDebugAdapter. (/home/shenfeng/.vscode/extensions/msjsdiag.debugger-for-chrome-4.11.3/out/src/chromeDebugAdapter.js:69:57) at Generator.next () at /home/shenfeng/.vscode/extensions/msjsdiag.debugger-for-chrome-4.11.3/out/src/chromeDebugAdapter.js:10:71 at new Promise () at __awaiter (/home/shenfeng/.vscode/extensions/msjsdiag.debugger-for-chrome-4.11.3/out/src/chromeDebugAdapter.js:6:12) at launch.then (/home/shenfeng/.vscode/extensions/msjsdiag.debugger-for-chrome-4.11.3/out/src/chromeDebugAdapter.js:52:74) ``` 2.这个是因为找不到chrome,用pacman查找位置 ```bash pacman -Ql google-chrome ``` 3.lanch.json 配置 ``` "runtimeExecutable": "/usr/bin/google-chrome-stable", ```
没有评论