如何在Firebug中调试Greasemonkey脚本? [英] How to debug Greasemonkey scripts in Firebug?

查看:105
本文介绍了如何在Firebug中调试Greasemonkey脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何调试Firebug中的Greasemonkey脚本?



我无法调试Firebug中的任何Greasemonkey脚本,因为它们不出现在脚本选项卡(再)。



答案在如何使用Firebug扩展来调试Greasemonkey脚本?显然不适用于最新版本的Firefox + Firebug?



我试过了:创建一个新的Firefox配置文件

  • about:config
    $ b

    • c>设置 extensions.firebug.filterSystemURLs 到 false

    • 更新到Firebug 2.0.2



    我之前有过这个问题,并且通过创建一个新的Firefox配置文件解决了这个问题,但是这次还没有成功。
    请问任何人都知道如何得到这个工作,或者如果有一个与Greasemonkey一起使用的Firebug的替代品?



    我在Firefox 31.0上。 p>

    解决方案


    Firebug 1.x与Greasemonkey 1一起使用。 x好吧,虽然我可以使用Firebug调试安装在Greasemonkey中的用户脚本来设置断点。但是在我将Firefox升级到30之后,Firebug升级到了2.0。看起来再也行不通了。


    项目成员simon.lindholm10


    没有什么奇怪的是,脚本发现的方法在2.0中基本上发生了变化...以前,我们遍历所有脚本并尝试将它们绑定到某处,现在我们从网页和钩子脚本创建它,这是更理智。



    得到这个固定的方式(假设它不能在内置的调试器工作)是文件在 https://bugzilla.mozilla.org 上的Devtools或Greasemonkey;我相信我们在Firebug方面做得很少。


    How to debug Greasemonkey scripts in Firebug?

    I can't debug any Greasemonkey scripts in Firebug because they don't appear in the list under the Script tab (anymore).

    The answers at "How to debug Greasemonkey script with the Firebug extension?" apparently don't work with the latest versions of Firefox + Firebug?

    I've tried:

    • Creating a new Firefox profile
    • about:config setting extensions.firebug.filterSystemURLs to false
    • Updating to Firebug 2.0.2

    I had this problem before and solved it by creating a new Firefox profile but that hasn't worked this time. Please does anyone know how to get this working or if there is an alternative to Firebug that works with Greasemonkey?

    I'm on Firefox 31.0.

    解决方案

    Issue 7513: 2.0 cannot debug userscripts in Greasemonkey

    Firebug 1.x works with Greasemonkey 1.x well, while I can debug userscripts installed in Greasemonkey using Firebug to set a breakpoint. But after I upgrade my Firefox to 30 and the Firebug was upgraded to 2.0. It seems does not work any more.

    Project Member simon.lindholm10

    Not that surprising, the method of script discovery changed pretty fundamentally in 2.0... Previously we were iterating over all scripts everywhere and trying to tie them somewhere, now we start from the web page and hook script creation for it, which is much more sane.

    The way to get this fixed (presuming it doesn't work in the built-in debugger) is to file it against Devtools at https://bugzilla.mozilla.org, or against Greasemonkey; there's very little we can do on the Firebug side I believe.

    这篇关于如何在Firebug中调试Greasemonkey脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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