浏览器开发者调试工具快速一览

谷歌浏览器开发者模式调试

这里以chrome为例说明,同时现代化的浏览器均具有丰富的调试功能。在微软加入chromium阵营后,将为其添加和尝试更加丰富的功能特性。

https://developer.mozilla.org/zh-CN/docs/Web https://developers.google.com/web/tools/chrome-devtools/javascript/pretty-print?hl=zh-cn

入门

在线帮助

 

image-20210215150850748

 

image-20210215151137259

 

Elements

左侧源码显示区,右侧样式(Styles),可以实时调试,调试后,将结果复制到源码的html或css中,永久生效。

image-20210215150326809

Console

调用、调试js函数测试

image-20210215153111554

 

Sources

image-20210215145631878

 

Network

资源请求的网络传递信息

image-20210215145605558

 

image-20210215154407464

curl 格式

image-20210215151412745

 

Applications

image-20210215153542798

Security

image-20210215153440218

快速格式化

 

Sources 面板中查看脚本时,请点击 Pretty-Print pretty-print 图标 图标,将缩减的脚本转换成更便于人阅读的形式。

https://developers.google.com/web/tools/chrome-devtools/javascript/pretty-print?hl=zh-cn

image-20210111140826798

 

 

javascript调试

断点endpoint

 

image-20210112161251142

 

 

未完待续(20220122)。