vscode javascript用firefox来debug

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "firefox",
            "request": "launch",
            "name": "Launch firefox against localhost",
            "firefoxExecutable": "D:/Program Files/Mozilla Firefox/firefox.exe",
            "url": "file:///要跑的文件在本地的路径",
            "webRoot": "${workspaceRoot}"
        },
    ],
    "code-runner.executorMap": {
        "javascript": "node",
        "html": "firefox",
    }
}

url的例子:

"url": "file:///D:/git/project/example.html",
posted @ 2024-09-28 14:11  寻找繁星  阅读(12)  评论(0)    收藏  举报