http://uicss.cn/r.php?hr=http://getfirebug.com/lite.html
<script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js#enableTrace,overrideConsole=false"></script>
This version was conceived to put the Firebug Lite in a new
level,
by allowing code reuse from Firebug's original source. A new
core
was created to accomplish the following goals:
Performance
- the core of Firebug Lite 1.3 was
rewritten from scratch
taking the performance into account in the first place.
Modularity
- the code is now more modular, making it
easier to add
new features and UI components such as panels, buttons,
menus etc.
The modularity also helps the development process. Once the
modules can
be isolated it is easier to detect the cause of complicated
problems like
memory leaks.
Shared code
- the core was designed to make it
possible
to port some code directly from the Firebug source with as
few as possible
modifications. As a result some features and UI elements
behave exactly
as in Firebug.
Compatibility
- the new core is compatible with XHTML
and XML+XSLT
documents. Thanks to the new context-independent approach it
supports
now the experimental persistent popups feature (popups that
"live" across
different page loads of the same domain).
<!-- ========================================================================================== -->
User Interface
- Port of Firebug's Visual Object Representation (aka
Reps)
- Recreation of Firebug 1.3 User Interface with pixel
precision
- Menu options
- Resizable Side Panel
- Skinnable Interface
CSS
- CSS cascading view
- CSS inheritance view
- Live editing CSS rules and properties
- Autocomplete as you type feature, with smart suggestions
(you'll get only the suggestions you need for each property)
- Increment/decrement with UP/DOWN and PAGE UP/PAGE DOWN
keys
Inspector
- Full BoxModel Highlight including margin, border,
padding and content boxes
- The BoxModel is highlighted when you move your mouse
over a representation
of a HTML element, in any of the place of the User Interface
- Elements are selected on-the-fly while using the Inspect
tool
Console
-
console.group()
, console.groupCollapsed()
and console.groupEnd()
-
console.trace()
(now with file name and
line numbers for some browsers)
- Command line API functions
$()
, $$()
,
and dir()
- Command line shortcuts
$0
and $1
for recent selected elements
- Autocomplete (tab, shift+tab)
- can capture console messages before DOM document
creation
(when installed at the HTML header)
Core
- XHR watcher (with Headers, Response, Post and Params
tabs)
- Port of Firebug Library (aka Lib, FBL)
- Port of Firebug DOM Templates Engine (aka Domplate), the
magic behind Reps
- Plugin system like Firebug
- Context-independent (will allow cross-iframe debugging,
and persistent popups)
- Persistent popups
- Synchronization across different windows (iframe, popup)
And more...
-
For a complete list of changes, check the
changelog
.
1.3. What's Not in Lite?
Some features are not included in Firebug Lite 1.3, but due
the new core that
supports code sharing from Firebug, are likely to be
included in the
Firebug Lite 1.4 version:
- Live editing for all panels
- Layout Side Panel
- Context menu options
- Tooltips (to show colors and images)
- Search feature
Other features though are too dependent in browser internals
and will not be
supported (at least in a near future*), such as:
- Javascript debugger / Javascript profiler
- Net panel / HTTP and XHR monitor
- Access to restricted URI resources
- Highlight HTML changes
*Discussions
about remote debugging
indicates that should be possible to support JavaScript
debugging in browsers
like Google Chrome and Opera in the future.
<!-- ========================================================================================== -->
Bookmarklet
Bookmark the following links:
Stable channel
Beta channel
Live link
You can also link directly to the hosted version at
getfirebug.com. Copy the
following code, and paste it in the TOP of the HEAD of your
document:
Stable channel
Firebug Lite:
Firebug Lite debug:
Beta channel
Firebug Lite beta:
Local link (offline)
If you need using Firebug Lite while offline,
download
the code
,
copy it to a local destination, and link the firebug-lite.js
in the TOP
of the HEAD of your document:
If you want to debug the local installation, use the
firebug-lite-debug.js
file instead:
<!-- ========================================================================================== -->
The properties you can change include (with respective
default values):
-
saveCookies
- false
-
startOpened
- false
-
startInNewWindow
- false
-
showIconWhenHidden
- true
-
overrideConsole
- true
-
ignoreFirebugElements
- true
-
disableWhenFirebugActive
- true
-
enableTrace
- false
-
enablePersistent
- false
Here is the list of methods you can use to change the
options,
in ascendant order of priority, that is, a particular method
will override the options of preceding methods:
<html
debug="true">
For backwards compatibility you can still use the
debug="true" attribute
in the <html> tag to make Firebug Lite starts opened,
like:
<html debug="true"
>
Script URL
options
You can also set the options using URL fragments, specially
handy to tweak
options in your bookmarklet.
https://getfirebug.com/firebug-lite.js#enableTrace
Options are separated by commas (,
), and values
are informed using
the equals to (=
) symbol. If no value is
informed,
"true
" is assumed.
path/to/firebug-lite.js#enableTrace,overrideConsole=false
is equivalent to:
path/to/firebug-lite.js#enableTrace=true,overrideConsole=false
Script JSON
options
It is possible to set options using a JSON object inside
the linked script:
<script type="text/javascript"
src="https://getfirebug.com/firebug-lite.js">
{
overrideConsole: false,
startInNewWindow: true,
startOpened: true,
enableTrace: true
}
</script>
Cookies
Finally, you can override the options using cookies, via
User
Interface, by clicking in the Firebug icon in the upper-left
corner.
<!-- ========================================================================================== -->
If you are familiar with Firebug extension development, you
will
see that developing an extension for Firebug Lite is very
similar.
In a Firebug extension all code is encapsulated in a strange
at
first glance but very clever way:
FBL.ns(function() { with (FBL) {
// extension code
}});
In a Firebug Lite extension the code is encapsulated in a
similar way but using Firebug.extend
instead,
once
the FBL
module (Firebug internal's library) is
not
exposed to the global namespace:
Firebug.extend(function(FBL)
{ with (FBL) {
// extension code
}});
If you are not familiar with Firebug extension development,
I suggest looking at Honza's series of tutorials, including
Firebug
Tutorial
and Domplate
Tutorial
.
Here's a sample of how to create a new panel in Firebug
Lite:
Firebug.extend(function(FBL) { with (FBL) {
// ***********************************************************************
function PluginPanel(){};
PluginPanel.prototype = extend(Firebug.Panel,
{
name: "Plugin",
title: "Plugin",
initialize: function(){
Firebug.Panel.initialize.apply(this, arguments);
this.panelNode.innerHTML = "Hello World!";
}
});
Firebug.registerPanel(PluginPanel);
// ***********************************************************************
}});
<!-- ========================================================================================== -->
The debug mode helps detecting errors in Firebug Lite. When
in
debug mode, Firebug Lite will behave as explained below:
- Firebug Lite starts opened.
- The internal library used by Firebug Lite (aka
FBL
)
is exposed to the global namespace allowing the inspection
of its content.
- Firebug Lite will be forced to open even when Firebug is
active
(which is not the default behavior), so you can use Firebug
to debug it.
- The "Trace Panel" is enabled (in which internal log
messages of
Firebug Lite are printed).
The debug mode will be activated when you run the
Firebug
Lite debug
bookmarklet, and
when you the load the "firebug-lite-debug.js"
or
"firebug-lite-dev.js"
files. You can also
activate
it manually by setting a special option "debug"
to "true"
, using the
Script
URL
or
Script JSON
methods.
<!-- ========================================================================================== -->
If you want to debug Firebug Lite, fix a bug or add a new
feature, you will want
to run Firebug Lite in development mode. To do so, first
checkout
the latest version
in our repository, and then insert a script at the TOP of
the HEAD of your document.
When in development mode, some things behave quite
differently to make the
development process easier, such as:
- All script files are loaded separately, without
compression.
- The internal library used by Firebug Lite (aka
FBL
)
is exposed to the
global namespace allowing you to inspect its content. It is
also exposed
the domplate
and its classes, and the FBTrace
object
- The skin is loaded in a separated file allowing you to
rapidly change
the style and/or markup of the User Interface.
- Firebug Lite will be forced to open even when Firebug is
active
(which is not the default behavior), so you can use Firebug
to debug it.
- The "Trace Panel" is enabled (in which internal log
messages of
Firebug Lite are printed).
- A new "Dev Panel" will be available with tools to
compress the skin
and the source code of the application in a single file.
<!-- ========================================================================================== -->
Your contribution is very important. Found a bug? Have a
suggestion? Please
report
us
.
Found a fix for a particular issue?
Patches
are welcome
.
Also, if you are willing to help more deeply with coding,
join our
team
.
分享到:
相关推荐
标题中的“IE中使用Firebug”指的是在Internet Explorer(IE)浏览器中利用Firebug这一强大的开发者工具进行网页调试和分析的技术。Firebug原本是Firefox浏览器的一个扩展,但这里提到的是在IE环境下的一种类似功能...
IE插件 类似Firebug,IE firebug插件,IE WebDeveloper ,IE的测试网页插件,在IE中处理CSS样式问题
《IE6下的Firebug Lite:一款跨浏览器的前端开发利器》 在早期的网页开发过程中,尤其是针对IE6这样的老版本浏览器,开发者面临的一个大挑战就是缺乏有效的调试工具。Firebug,作为Firefox的一款强大插件,为Web...
本文将详细介绍两款在IE环境下可以使用的类似Firebug的调试工具:DebugBar和CompanionJS,以及Microsoft的JavaScript调试器。 首先,DebugBar是一款强大的IE开发者工具,它由Marc Aube开发,版本v4.5.1。DebugBar...
ie下类似火狐Firebug的插件 Internet Explorer Developer Toolbar Instructions After installing the Developer Toolbar, restart Internet Explorer and click the Developer Toolbar icon in the command bar to ...
这个高仿Firebug工具的出现,极大地提升了IE6环境下开发和调试的效率,让开发者能够在较老的浏览器环境中也能享受到现代开发工具的便利。尽管现在IE6已经逐渐被淘汰,但这个工具代表了开发者对提升开发效率的追求和...
标题提到的"firebug for IE6+, Firefox, Opera, Safari and Chrome",意味着这是一个跨浏览器的解决方案,旨在为开发者提供在不同浏览器上调试和优化网页的能力。 Firebug Lite是Firebug的轻量级版本,适用于不支持...
总的来说,尽管FireBug Lite在IE中的功能有所限制,但它依然是一个强大的前端开发辅助工具,特别适合那些习惯使用FireBug但在IE环境下工作的开发者。通过熟练掌握它的使用,可以大大提高工作效率,解决IE浏览器特有...
类似于firebug的网页开发工具,适用于IE版本,遨游 Firebug集成到傲游浏览器中,将提供一个良好的网页开发工具,当您浏览任何网页时,可以直接编辑,调试和监测网页中的CSS,HTML和JavaScript元素。(Firebug ...
Firebug是firefox下的一个扩展,能够调试所有网站语言,如Html,Css等,但FireBug最吸引人的就是javascript调试功能,使用起来非常方便,而且在各种浏览器下都能使用(IE,Firefox,Opera, Safari)。除此之外,其他功能...
然而,当我们在使用Internet Explorer(IE)浏览器时,虽然IE并未内置像Firebug那样强大的开发工具,但仍然有其自身的JavaScript调试解决方案,帮助开发者解决问题和优化代码。 IE下的JavaScript调试器主要有两种:...
IEDevToolBar-IE6下的FireBug网页调试工具(IE6兼容测试的好帮手)WEB开发人员的福音。 微软的IEDevToolBar,这是一个免费的专门为Web开发人员制作的IE插件,IE插件IEDevToolBar可以帮助我们分析网站的布局结构,有...
它是一个独立的JavaScript文件,只需将其引入到网页中,即可在IE6下实现类似Firebug的功能。 Firebug Lite的主要功能包括: 1. **HTML查看与编辑**:开发者可以查看网页的HTML结构,甚至实时编辑DOM元素,查看更改...
在实际工作中,HTTPWatch和Firebug常常结合使用,以获取更全面的网页性能分析和调试信息。例如,HTTPWatch可能更适用于服务器端的HTTP分析,而Firebug则侧重于前端开发者的网页元素和脚本调试。两者结合,可以有效地...
Firebug是一款著名的Web开发工具,最初是专门为Firefox浏览器设计的,允许开发者对HTML、CSS、JavaScript等进行实时编辑...尽管它可能没有原版Firebug那么强大,但在IE环境下,它无疑提高了开发效率并简化了调试过程。
Firebug是firefox下的一个扩展,能够调试所有网站语言,如Html,Css等,但FireBug最吸引人的就是javascript调试功能,使用起来非常方便,而且在各种浏览器下都能使用(IE,Firefox,Opera, Safari)。除此之外,其他功能...
8. **兼容性**:由于其跨浏览器的特性,Firebug Lite使得开发者可以在不支持原生Firebug的浏览器(如IE)上享受类似的功能,减少了在不同浏览器间切换调试的麻烦。 9. **插件集成**:尽管Firebug Lite功能相对有限...
这几个软件的结合可以实现类似于firebug的IE下调试工具。 1.打开IE菜单“工具”--“Internet选项”--“高级”,找到“禁用脚本调试(Internet Explorer)”和“禁用脚本调试(在Internet Explorer之外)”,将两个选项...
标题中提到的"firebug插件及各种浏览器",实际上是在讨论如何在不同的浏览器环境下利用类似Firebug的工具进行网页开发和调试。虽然Firebug现在已经被Firefox的内置开发者工具所替代,但其精神和功能仍然影响着现代的...