VS Code 编译器的调试工具整理

1 debbugeer for chrome的使用

下载安装,然后配置launch.json

{
                "name": "Chrome",//名称
                "type": "chrome",
                "request": "launch",
                "sourceMaps": false,//不用配置服务器,使用file协议
                "file": "${file}" //启动本页面的环境变量
            }

  然后就就可以设置断点啦(ps:貌似只能在外引的js里面设置)

2 配置node服务

  

            {
                "type": "node",
                "request": "launch",
                "name": "node Program",
                "program": "${file}"
            }

  有其他好实用的插件欢迎推荐~

猜你喜欢

转载自www.cnblogs.com/yiyi17/p/8969066.html