最近在 VS 代碼中運行腳本(我在 python、javascript、html ... 中的任何腳本)時出現的一個問題。彈出一個視窗說:Visual Studio Code - Unable to launch Browser: "Unable to find an installation of the browser on your system.Try installing it, or providing an absolute path to the browser in the "runtimeExecutable" in your launch.json.
我的瀏覽器是邊緣的。當我打開時launch.json,我看到它似乎正在嘗試使用我沒有在我的計算機上下載的 chrome。
{
// 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": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
我可以更改配置以匹配我在計算機上運行的瀏覽器嗎?或者我還能做些什么來解決這個問題?
謝謝!
uj5u.com熱心網友回復:
是的,您需要更改配置以啟動 Edge 進行除錯。你可以參考這個檔案。您需要更改type為pwa-msedge:
"type": "pwa-msedge",
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/459388.html
上一篇:VisualStudioCode不再顯示可變顏色或問題
下一篇:用vim替換字母數字
