zoukankan      html  css  js  c++  java
  • 网站优化网站前端优firedebug详情(转)

    以下内容转载胡争辉网站上的部份内容

    Firebug的Script脚本面板中,在Options选项菜单中,包括BreakOnErrors在全部错误处标记中断选项,打开该选项 时,Firebug将在出现javascript脚本错误时自动中断。该功能不受javascript脚本中的try/catch影响。例如:

    <html>
        <head>
            <script>
                try {
                    c.d();
                } catch (e) {
                    console.info(e);
                }
                a.b();
            </script>
        </head>
    </html>
    在两行出错代码中,Firebug都会中断,既便第一个出错代码有try/catch处理异常。
    涉及Firebug版本包括1.2.1。

    [Firebug - 简介]

    当前版本:1.2.1
    Release Notes for Firebug 1.2.1
    Frebug 1.2.1的发布说明
    Firebug 1.2.1 is Firebug 1.2.0 with bug fixes
    Firebug 1.2.1在Firebug 1.2.0的基础上修复缺陷
    Firebug 1.2 is Firebug 1.1 with additions by John J. Barton and Jan Odvarko.
    Firebug 1.2是John J. Barton和Jan Obvarko在Firebug 1.1版本基础上开发。
    Firebug 1.1 is Firebug 1.05 by Joe Hewitt with additions by John J. Barton and Max Stepanov
    Firebug 1.1是John J. Barton和Max Stepanov在Joe Hewitt开发的Firebug 1.05基础上开发

    == Bug Fixes ==
    == 缺陷修正 ==
    Issue 502: Component is not available (SessionStore exception)
    问题 502: 组件不可用(SessionStore异常)
    (Port of R967) verified that the browser element has disableHistory. No error message in ErrorConsole
    (R967中处理)已复审浏览器元素包含disableHistory,在错误控制台中缺少错误消息

    Issue 1110: Firebug doesn't respond (abclinuxu.cz) -- very long URL
    问题 1110: Firebug没有响应(abclinuxu.cz)——非常长的URL
    (Port of R968) verified that issue testcase loads, long URL show up in Script filelist
    (R968中处理)已复审加载问题对应的测试用例,长URL在脚本的文件列表中显示出来

    Issue 1097: inspect image tooltip confuses images from different tabs
    问题:1097: 查看图像的工具提示在不同的面板中引起混淆
    (Port of R969) verified that the issue test case gives the right image for the second page
    (R969中处理)已复审问题测试用例在第二页中提供正确的图像

    Verified test case http://www.janodvarko.cz/firebug/tests/ Issue1092 .htm
    复审所用测试用例参见http://www.janodvarko.cz/firebug/tests/Issue1092.htm

    Issue 1109: Missing POST information (empty POST tab)
    问题 1109: 缺少POST信息(空白的POST面板)
    (Port of R972) verified http://xemc.net/missing_post_bug.php
    (R972中处理)已复审http://xemc.net/missing_post_bug.php

    Issue 874: User object incorrectly identified as arrays (contribution by nielsen.chris)
    问题 874: 用户对象错误的被识别为数组(nielsen.chris提供)
    (Port R973 and R979) verified http://chris.photobooks.com/tests/firebug/NotAnArray/NotAnArray.html
    (R973和R979中处理)已复审 http://chris.photobooks.com/tests/firebug/NotAnArray/NotAnArray.html

    Issue 1063: Spanish translation for 'script' shouldn't be 'guión' (contribution by eternoendless)
    问题 1063: 西班牙语对'script'的翻译不应当是'guión' (eternoendless提供)
    (Port R974) DID NOT RETEST
    (R974中处理)没有复审

    Script panel Filelist initialized correctly now
    现在脚本面板的文件列表已能正确的初始化
    (Port R980) DID NOT RETEST
    (R980中处理)没有复审

    If Script disabled, stop sooner
    在禁用脚本时,更快的停止
    (Port R981) DID NOT RETEST
    (R981中处理)没有复审

    Issue 1121: "Open in Tab" does a POST request for a GET request
    问题1121: "在标签中打开“对于一个GET请求执行了一个POST请求
    (Port R988) DID NOT RETEST
    (R988中处理)没有复审

    Issue 1125: Net panel not working as expected (1.2.0)
    问题1125: 网络面板没能像预期的方式工作(1.2.0)
    (Port R989)DID NOT RETEST
    (R989中处理)没有复审

    Remove unused parameter from Firebug.ActivableModule.getMenuLabel (used to return labels for panel activation menu).
    从Firebug.ActivableModule.getMenuLabel中移除不使用的参数(用于返回面板活动菜单的标签)
    (Port R992)
    (R992中处理)
    Avoid message Failed to get string
    避免获取字符串时的失败消息
    (Port R993) Verified message is not on OS console
    (R993中处理)已复审没有在OS控制台的消息

    Issue 1137 : Forgets which JS file being viewed after switching away and back to Script tab
    问题1137: 在脚本面板中离开后返回时没能保持原来正在阅览的JS文件
    (Port R994) Verifed both test cases
    (R994中处理)已复审两个用例

    Convert all spaces in localized strings to underscore to create key for .properties file
    为.properties文件创建键时将本地化字符串中所有的空格转换成下划线
    (Port R1006) DID NOT RETEST
    (R1006中处理),没有复审

    Implement CSS option showUserAgentCSS, default false, partial fix for Issue 1107: Toggleing Table css properties breaks page permanently firebug 1.2.0b1
    实现CSS选项showUserAgentCSS,默认没有选中。部分修复问题1107: "在firebug 1.2.0b1中切换表格的css属性时永久的破坏了页面"
    (Port R1007) Verified that the option exists and functions both directions.
    (R1007中处理)已复审存在该选项和函数两个方面

    [Firebug - 发布地址]

    https://addons.mozilla.org/zh-CN/firefox/addon/1843

    [Firebug - 官方网站]

    http://www.getfirebug.com

    [Firebug - 文档]

    http://www.getfirebug.com/docs.html

    [Firebug - bug]

    http://code.google.com/p/fbug/issues/list

    [Firebug - 关键词]

    Firebug

    [Firebug - 相关论坛]

    http://groups.google.com/group/firebug

    [Firebug - Console控制台面板]

    console API文档, http://www.getfirebug.com/console.html

    console.info显示(i)图标

    在输出时,需要注意第一个参数被自动识别为格式字符串

    需要在页面加载前启动firebug,当页面加载后启动firebug时,就没有console对象

    console.time(name), 用指定名称创建一个定时器,使用同一个名称调用console.timeEnd(name)将停止定时器并输出时间间隔。

    console.timeEnd(name), 停止通过console.time(name)创建的定时器,并输出时间间隔。

    [Firebug - HTML页面面板]

    Show Computed Style不显示所有可用的样式,涉及版本1.2.0

    标记的显示也会与源代码不同,而是按照Firefox对文档结构的解析显示的

    在页面上右击弹出菜单中选择Inspect Element菜单项,能起到与Inspect按钮相同的作用。

    [Firebug - CSS样式表面板]

    Edit编辑模式下切换文件不能保持Edit编辑模式

    [Firebug - Script脚本面板]

    使用step into, step over等按钮需要预先设置javascript脚本的断点

    Options选项,Break on All Errors在全部错误处标记中断,用于捕获javascript出错事件,不受javascript脚本中的try/catch影响

    在页面加载过程中的脚本设置断点,可以先加载页面,设置断点,然后刷新页面

    [Firebug - DOM文档结构面板]

    页面中包含不断执行的AJAX时,DOM面板也将不断刷新,此时可以在script面板中AJAX脚本处设置断点避免DOM面板刷新。

    借助Show User-defined Properties选项查看javascript全局变量

    [Firebug - Net网络面板]

    进度条
    进度条颜色
    文字颜色
    含义

    绿色
    黑色
    正在读取

    深灰色
    黑色
    向服务器端发送请求,从服务器端返回文件

    深灰色
    红色
    404,没有找到指定文件

    浅灰色
    黑色
    向服务器端发送请求,服务器端返回未修改,加载本地缓存文件

    -
    黑色
    未向服务器发送请求,直接从本地缓存加载文件

    右击菜单, Open in New Tab在新标签中打开

    [Firebug - 其他问题]

    不支持IE Tab

    设置Javascript.options.strict为False避免Firebug出错, http://kb.mozillazine.org/Javascript.options.strict

    [Firefox - 官方网站]

    http://www.mozilla.com/zh-CN/firefox/

    [Firefox - 下载]

    当前版本3.0.3, http://www.mozilla.com/en-US/firefox/3.0.3/releasenotes/

    http://www.mozilla.com/en-US/firefox/all.html

    测试版本 Firefox 3 Beta 1, http://www.mozilla.com/en-US/firefox/all-beta.html

    [Firefox - 相关论坛]

    http://firefox.board.newsmth.net/
    http://bbs.pku.edu.cn/, Homepage看版
    http://forum.csdn.net/SList/HTMLCSS/

    [Firefox - 附加组件 - 扩展]

    CookieSafe, 当前版本2.0.6, 常用, https://addons.mozilla.org/en-US/firefox/addon/2497
    Firebug, 当前版本1.2.1, 常用, https://addons.mozilla.org/en-US/firefox/addon/1843
    Firesizer, 当前版本 0.65, 常用, https://addons.mozilla.org/zh-CN/firefox/addon/5792
    Google Toolbar for Firefox, 当前版本3.0.20070525W, 常用, http://www.google.com/tools/firefox/toolbar/FT2/intl/zh-CN/
    Html Validator, 当前版本0.8.4.0, 常用, https://addons.mozilla.org/firefox/249/
    MinimizeToTray, 当前版本0.0.1.2006102615+, 不常用, https://addons.mozilla.org/firefox/2110/
    Tab Mix Plus, 当前版本0.3.6, 不常用, https://addons.mozilla.org/firefox/1122/
    Torbutton, 当前版本1.2.0, 常用, https://addons.mozilla.org/en-US/firefox/addon/2275

    [Firefox - 附加组件 - 插件]

    Shockwave Flash, http://www.adobe.com/products/flashplayer/  

  • 相关阅读:
    LeetCode
    已知二叉树的先序遍历和中序遍历序列求后序遍历序列
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    TCP协议的基本规则和在Java中的使用
    Java中UDP协议的基本原理和简单用法
    LeetCode
  • 原文地址:https://www.cnblogs.com/Leung/p/1597928.html
Copyright © 2011-2022 走看看