最小化IE8开发人员工具Javascript [英] IE8 Developer Tools Javascript Minimized

查看:113
本文介绍了最小化IE8开发人员工具Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开IE8开发人员工具(使用F12)时,单击脚本",然后选择项目的.js文件,将最小化显示的Javascript.这使得调试几乎是不可能的.在研究中,我发现对出现的配置按钮"的引用可以漂亮地打印Javascript源.不幸的是,我在IE8开发人员工具的工具条或菜单中找不到该按钮. XP SP3 TIA Gus

When I open the IE8 Developer Tools (using F12), click on Scripts, and choose the project's .js file, the Javascript that is displayed is minified. This makes debugging almost impossible. In researching, I found a reference to a "configuration button" that appears would pretty-print the Javascript source. Unfortunately I cannot find that button in the IE8 Developer Tool tool-strip or menu. XP SP3 TIA Gus

推荐答案

仅在IE9的开发人员工具的配置菜单中可用:

unfortunately that is only available in IE9's developer tools, in the configuration menu:

有关开发工具的MSDN文章在IE9中

修改:

最后一个选择可能是使用FirebugLite,如果事实上IE8为您缩小了JavaScript,Firebug则不应,您可以通过在书签中使用它来在IE中获取FirebugLite:

One last option could be using FirebugLite, if infact IE8 is minifying the javascript for you, Firebug should not, you can get FirebugLite in IE by using it in a bookmarklet: http://getfirebug.com/firebuglite

基本上,您要做的是在IE(例如firebuglite网站)中创建一个书签,然后右键单击->属性,然后将URL更改为:

basically what you have to do is create a bookmark in IE (of say the firebuglite website) then right click -> properties, and change the URL to be:

javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new%20Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https://getfirebug.com/','#startOpened');

单击书签时,萤火虫应在页面底部弹出

when you click the bookmark, firebug should popup in the bottom of the page

Firebug(包括Lite)拥有BSD许可证.由于此答案中复制了源代码,因此应包括以下许可证:

Firebug (including Lite) has a BSD license. Since the source code is reproduced in this answer, the following license should be included:

软件许可协议(BSD许可)

Software License Agreement (BSD License)

Mozilla基金会版权所有(c)2009 保留所有权利.

Copyright (c) 2009, Mozilla Foundation All rights reserved.

以修改过的或未经修改的原始和二进制形式分发和使用此软件, 如果满足以下条件,则允许:

Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • 重新分发源代码必须保留上述内容 版权声明,此条件列表以及 以下免责声明.

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

以二进制形式重新分发必须复制上面的内容 版权声明,此条件列表以及 在文档和/或其他声明中免责声明 随发行版一起提供的材料.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Mozilla Foundation的名称或其名称都没有 贡献者可用于认可或促销产品 从该软件衍生而来,没有特定的先验 Mozilla Foundation的书面许可.

Neither the name of Mozilla Foundation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Mozilla Foundation.

此软件由版权所有者和贡献者按原样"以及任何明示或 默示担保,包括但不限于适销性和 不满足特定目的的适用性.在任何情况下,版权拥有者或 贡献者对任何直接,间接,偶然,特殊,示范或后果性的责任 损害(包括但不限于购买替代商品或服务;使用损失, 数据或利润;或业务中断),无论是基于任何责任理论, 合同,严格责任或侵权行为(包括疏忽或其他方式) 即使已告知可能发生此类损坏,也要使用此软件.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

这篇关于最小化IE8开发人员工具Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆