VS Code 使用插件让HTML和JS代码运行在火狐浏览器

首先安装Debugger for Firefox

然后再编写json配置代码

    {
         
             
                    "name": "Html",
                    "type": "firefox",
                    "request": "launch",
                    "reAttach": true,
                    "file": "${file}"

        }

注意在运行的时候选择HTML的运行配置。

这样就能再VS Code中断点JS了。

原文地址:https://www.cnblogs.com/T-ARF/p/12520136.html