gpt4 book ai didi

javascript - 如何在 Firebug 中调试 Greasemonkey 脚本?

转载 作者:数据小太阳 更新时间:2023-10-29 05:29:49 26 4
gpt4 key购买 nike

如何在 Firebug 中调试 Greasemonkey 脚本?

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

答案在 "How to debug Greasemonkey script with the Firebug extension?"显然不适用于最新版本的 Firefox + Firebug?

我试过:

  • 创建新的 Firefox 配置文件
  • about:configextensions.firebug.filterSystemURLs 设置为 false
  • 更新到 Firebug 2.0.2

我以前遇到过这个问题并通过创建一个新的 Firefox 配置文件解决了它,但这次没有用。请问有谁知道如何让它工作,或者是否有 Firebug 的替代品可以与 Greasemonkey 一起使用?

我使用的是 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.

项目成员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.

关于javascript - 如何在 Firebug 中调试 Greasemonkey 脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25056395/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com