【发布时间】:2021-06-03 22:08:14
【问题描述】:
在 VS Code 中使用 Debugger For Firefox,并在本地主机上为我的 HTML/JS 应用程序运行 LiveServer 实例,在 Firefox 或 Firefox Developer Edition 中打开站点时断点不起作用。
VS 代码为我的项目生成了launch.json 用于在 Firefox 中进行调试,相关部分在这里:
{
"name": "Launch localhost",
"type": "firefox",
"request": "launch",
"reAttach": true,
"url": "http://localhost/index.html",
"webRoot": "${workspaceFolder}"
},
问题是当我运行此设置时,Firefox 找不到该页面,即使找到了,断点也不起作用。但是,上述对 Chrome 的等效项是有效的。
【问题讨论】:
标签: firefox