firebug 控制

Update: A better version of what I was trying to do is here. It works around the cross-domain permission problems in IE by not loading a page in the frame, but putting there the actual content.

更新:这里是我尝试做的更好的版本。 通过不在框架中加载页面,而是在其中放置实际内容,可以解决IE中的跨域权限问题。

Firebug - no words to describe how cool it is, really. After the recent new release (1.0. beta) the number of features is overwhelming. I for one can't live anymore without it, seriously.

萤火虫-实在没话可说。 在最近的新版本(1.0。beta)之后,功能的数量已不堪重负。 认真地,我不能再没有它了。

One of the things I noticed on the website is the ability to use the Firebug console in other browsers than Firefox. I don't know if this existed before version 1.0 but if it did, it was the best kept secret. I am so addicted to the console in Firefox, I use it all the time to tweak a few things here and there when I'm working on a page. Recently I was looking for something similar for IE, but couldn't find it. Lo and behold, it was right under my nose.

我在网站上注意到的一件事是能够在除Firefox之外的其他浏览器中使用Firebug控制台。 我不知道它在1.0版之前是否存在,但是如果存在,那是最好的秘密。 我对Firefox的控制台非常着迷,当我在页面上工作时,我会一直使用它来调整一些地方。 最近,我正在为IE寻找类似的东西,但找不到它。 瞧,那是在我的鼻子下面。

So, here's the page that describes how to use Firebug in IE (and others). Basically you unzip the Firebug Lite files somewhere on your server and then you include firebug.js in your pages. But why stop there? And isn't it possible to avoid including this script on every page (and forgetting to remove once you're done, or removing it prematurelly since a page, just like a painting, is never really finished). Bookmarklets to the rescue!

因此,这是描述如何在IE(及其他)中使用Firebug的页面。 基本上,您将Firebug Lite文件解压缩到服务器上的某个位置,然后在页面中包含firebug.js。 但是为什么要停在那里? 并且不可能避免在每个页面上都包含此脚本(并且一旦完成就忘记删除该脚本,或者因为一个页面就像一幅画从未真正完成过而过早地删除它)。 书签解救!

I wanted to host the Firebug files on my hard-drive and then use a javascript dynamic include to load firebug.js via a bookmarklet. This way I would be able to load the firebug console every time I want it, on any page. Unfortunatelly IE's security policy won't allow it. Then?

我想将Firebug文件托管在我的硬盘上,然后使用javascript动态包含通过书签加载firebug.js。 这样,我便可以在任何页面上随时加载Firebug控制台。 不幸的是,IE的安全策略不允许这样做。 然后?

解 (Solution)

The solution I came up with is:

我想出的解决方案是:

  1. you copy the Firebug Lite files somewhere on your server您将Firebug Lite文件复制到服务器上的某个位置
  2. you call a bookmarklet that will load firebug.js您调用将加载firebug.js的小书签
  3. you hit F12 and you have a console!您按下F12键,就拥有一个控制台!

This procedure has to be repeated for every domain you're working on, because of the security policy that won't allow cross-domain frame scripting. You can have one copy for your http://localhost and one for every domain. To ease the creation of bookmarklets that load firebug.js, I came up with a Firebug bookmarklet generator.

由于安全策略不允许跨域框架脚本编写,因此必须针对您正在使用的每个域重复执行此过程。 您可以为http:// localhost提供一个副本,为每个域提供一个副本。 为了简化创建加载firebug.js的小书签的过程,我提出了一个Firebug小书签生成器。

在行动 (In action)

  1. I copied Firebug Lite files (get the .zip) on this server (phpied.com), they are here.

    我在此服务器(phpied.com)上复制了Firebug Lite文件(获取.zip),它们在这里。

  2. I (and you can try the same) generate a bookmarklet, using the bookmarklet tool

    我(您可以尝试相同的方法)使用小书签工具生成小书签

  3. Add the generated bookmarklet to the favorites将生成的书签添加到收藏夹
  4. Go to any page on phpied.com转到phpied.com上的任何页面
  5. Click the new favorite点击新的收藏夹
  6. Hit F12 to show/hide the console点击F12以显示/隐藏控制台

Here's how (a readable version of) the generated code looks like:

生成的代码(的可读版本)如下所示:

javascript:(function(){
var firebug_js = document.createElement('script');
firebug_js.setAttribute('type', 'text/javascript');
firebug_js.src = 'http%3A//www.phpied.com/files/firebug/firebug.js';
document.getElementsByTagName('head')[0].appendChild(firebug_js);
firebug_js.onreadystatechange = function () {
if (firebug_js.readyState == 'complete') {
console.open()
}
}
})()

控制台的较小改进 (Minor improvement to the console)

The Firebug Lite console executes the code you type, but doesn't show it again when you use the up/down arrows, the way it does in Firefox. So I added this feature (copying from myself), you can replace the firebug.js you download with my version.

Firebug Lite控制台执行您键入的代码,但是当您使用向上/向下箭头时不会再次显示该代码,在Firefox中是一样的。 因此,我添加了此功能(从我自己复制),可以用我的版本替换下载的firebug.js。

还没卖? (Not sold yet?)

Here's a screenshot of the console in action, I used it to change my photo on the homepage.

这是运行中的控制台的屏幕截图,我用它来更改主页上的照片。

请继续 (Go ahead, please)

I strongly encourage everyone to try this out. Firebug is a beautiful thing and using even a bit of it in IE is great.

我强烈鼓励大家尝试一下。 Firebug是一件美丽的事情,即使在IE中使用它也很棒。

Tell your friends about this post on Facebook and Twitter

在Facebook和Twitter上告诉您的朋友有关此帖子的信息

翻译自: https://www.phpied.com/firebug-console-for-ie/

firebug 控制

firebug 控制_IE的Firebug控制台相关推荐

  1. 在FIREBUG控制台中输入 jQuery() 返回 []

    在FIREBUG控制台中输入 jQuery() 返回 [] jQuery.fn = jQuery.prototype = {constructor: jQuery,init: function( se ...

  2. [Firebug]用来武装Firebug的十三款Firefox插件

    如果你是一名Web设计师,Firebug想必不会陌生,作为一款Firefox插件,它可能是网站前端开发最有用的工具之一.尤其是如今网站中用到越来越多的javascript和ajax技术,firebug ...

  3. Javascript的调试利器:Firebug使用详解

    copy from: http://blog.csdn.net/tianxiaode/archive/2007/09/02/1769152.aspx Javascript的调试,是开发Web应用尤其是 ...

  4. Web调试工具:火狐Firefox插件Firebug介绍

    Web调试工具:火狐Firefox插件Firebug介绍 什么是Firebug Firebug是Firefox下的一款开发类插件,现属于Firefox的五星级强力推荐插件之一.它集HTML查看和编辑. ...

  5. Javascript的调试利器:Firebug使用详解(上)

    Javascript的调试,是开发Web应用尤其是AJAX应用很重要的一环,目前对Javascript进行调试的工具很多,我比较喜欢使用的是Firebug.Firebug是Joe Hewitt开发的一 ...

  6. firebug详细使用方法

    Firebug主菜单 单击功能区最左边的臭虫图标可打开主菜单(图3-1),其主要功能描述请看表1. 图3-1 菜单选项 说明 Disable Firebug 关闭/开启Firebug对所有网页的编辑. ...

  7. Firebug安装与使用详解

    Javascript的调试,是开发Web应用尤其是AJAX应用很重要的一环,目前对Javascript进行调试的工具很多,我比较喜欢使用的是Firebug.Firebug是Joe Hewitt开发的一 ...

  8. Firebug使用详解

    Firebug使用详解 本文主要是为初学者介绍一下Firebug的基本功能与如何使用Firebug. 由于本人水平与能力有限, 在文章中的可能会有很多错误与遗漏, 希望大家能谅解和指正! 转自 htt ...

  9. Firebug 调试器开发中的12个技巧

    Firebug 调试器开发中的12个技巧 相信很多从事Web开发工作的开发者都听说和使用过Firebug,但可能大部分人还不知道,其实它是一个在网页设计方面功能相当强大的编辑器,它可以对 HTML.D ...

最新文章

  1. Struts2_day04--课程介绍_Struts2拦截器概述底层原理_重要的概念
  2. Git之常见的标签操作
  3. CVPR2020最全整理:分方向论文下载,Github源码、论文解读等[计算机视觉][目标检测]
  4. bool,_Bool和BOOL的区别
  5. OpenCV:没有GUI的情况下使用OpenCV无缝克隆模块(附完整代码)
  6. C语言插入排序Insertion Sort算法(附完整源码)
  7. Eclipse-Java代码规范和质量检查插件-FindBugs
  8. 牛逼!Python函数和文件操作(长文系列第3篇)
  9. Nginx学习之六:Nginx配置操作导航
  10. 编程之美 求数组中的最长递增子序列
  11. .NET 中依赖注入组件 Autofac 的性能漫聊
  12. 2016年度最受欢迎开源项目,JEECG、JEEWX参与投票
  13. Windows server 2008 R2桌面调出“计算机”等图标
  14. 基金教父约翰博格的创业史
  15. 【java】爬虫之零基础利用postman分析并实现12306余票查询功能
  16. android 读取 IMEI 和 MEID 的处理
  17. 利用打码平台识别点选验证码
  18. 新媒体运营教程:活动运营策划推广思路
  19. 台式计算机上无图像设备怎么办,WinXP台式机如何找回消失的摄像头图标
  20. 计算机桌面小工具,有哪些学生党必备的电脑桌面小工具软件

热门文章

  1. p标签实现自动换行CSS
  2. CentOS8搭建本地Web服务器
  3. 写一个函数,输入一个4位数字,要求输出这4个数字字符,但每两个数字间空一格空格。如输入1990,应输出”1 9 9 0“
  4. Hue连接HDFS -- HttpFS
  5. lz4压缩算法java实现_LZ4压缩算法分析
  6. 分享一款在线图片无损放大神器,比bigjpg还要快
  7. 教你如何安装iPhone手机主题(简略版)
  8. Java之坦克大战(四)---如何移动坦克
  9. javaScript取得当前元素的下一个元素
  10. java ntlm_NTLM验证过程