archlinux vs code 调试报错:Can't find Chrome

发布于 / 随记 / 0条评论 / Tags: vue / 2 次浏览

Error processing "launch": Error: Can't find Chrome

1.完整报错

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.<anonymous> (/home/shenfeng/.vscode/extensions/msjsdiag.debugger-for-chrome-4.11.3/out/src/chromeDebugAdapter.js:69:57)
    at Generator.next (<anonymous>)
    at /home/shenfeng/.vscode/extensions/msjsdiag.debugger-for-chrome-4.11.3/out/src/chromeDebugAdapter.js:10:71
    at new Promise (<anonymous>)
    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查找位置

pacman -Ql google-chrome

3.lanch.json 配置

"runtimeExecutable": "/usr/bin/google-chrome-stable",

    评论区(暂无评论)