Firebug

为什么我今天才知道这个插件……
相见恨晚啊

安装地址:http://www.getfirebug.com/
如果想在firefox以外使用:http://www.getfirebug.com/lite.html

主要功能简介:
1、Inspect and edit HTML

Firebug makes it simple to find HTML elements buried deep in the page. Once you’ve found what you’re looking for, Firebug gives you a wealth of information, and lets you edit the HTML live.

可以用鼠标选择element并高亮显示出相应的代码,然后可以编辑代码并实时看到效果

2、Tweak CSS to perfection

Firebug’s CSS tabs tell you everything you need to know about the styles in your web pages, and if you don’t like what it’s telling you, you can make changes and see them take effect instantly.

自动完成功能相当强大。还有一个不错的功能是提示哪些语句没有发生作用(多余的、被废弃),例如我们单位系统找人做的页面,css重复定义特别多。如果想调整样式,还可以点击每一行左边的小图标临时禁止该项。
css.jpg

3、Visualize CSS metrics

When your CSS boxes aren’t lining up correctly it can be difficult to understand why. Let Firebug be your eyes and it will measure and illustrate all the offsets, margins, borders, padding, and sizes for you.

可视化的调节页面边距等样式
可视化调节CSS

如果Inspect选择了element,还可以显示标尺
页面标尺

4、Monitor network activity

Your pages are taking a long time to load, but why? Did you go crazy and write too much JavaScript? Did you forget to compress your images? Are your ad partner’s servers taking a siesta? Firebug breaks it all down for you file-by-file.

可以查看页面以及页面内所有文件的载入速度,从而进行相应的优化
页面载入时间

5、Debug and profile JavaScript

Firebug includes a powerful JavaScript debugger that lets you pause execution at any time and have look at the state of the world. If your code is a little sluggish, use the JavaScript profiler to measure performance and find bottlenecks fast.

debug javascript,我最需要的功能,想了很久了,这个插件很方便的实现了,而不用安装别的一些庞然大物。
断点执行断点执行

6、Quickly find errors

When things go wrong, Firebug lets you know immediately and gives you detailed and useful information about errors in JavaScript, CSS, and XML.

7、Explore the DOM

The command line is one of the oldest tools in the programming toolbox. Firebug gives you a good ol’ fashioned command line for JavaScript complete with very modern amenities.

8、Logging for JavaScript

Having a fancy JavaScript debugger is great, but sometimes the fastest way to find bugs is just to dump as much information to the console as you can. Firebug gives you a set of powerful logging functions that help you get answers fast.

Firebug》上有1条评论

评论已关闭。