FirePhp与FireBug 1.12.0配合得很好吗?

时间:2013-08-23 10:03:53

标签: php firebug firephp

我昨天在项目中使用了firephp。

将Firefox升级到版本23.0.1后,FireBug扩展会自动升级到版本1.12.0,我发现firephp不会在控制台中显示详细数据。

它仍然显示简要数据。我无法展开它以查看细节。

我猜firebug改变了数据结构,firephp需要升级。

4 个答案:

答案 0 :(得分:5)

如果您不耐烦,可以自行快速解决。

  • 使用您喜欢的存档/ zip管理器打开FireBug xpi文件。对于linux用户,您应该在此处找到该文件:

    〜/ .mozilla /火狐/ [唯一ID] .DEFAULT /扩展/萤火@ software.joehewitt.com.xpi

  • 导航到存档/ zip管理器中的/content/firebug/console/,然后打开consolePanel.js

  • 到第911行(对于次要版本修订,这可能略有不同)。它应该是这样的:

    this.filterMatchSet.push(group);
    
  • 在该行之前添加:

    if (typeof this.filterMatchSet == 'undefined')
    {
        this.filterMatchSet = [];
    }
    
  • 将更改保存到存档并重新启动FireFox

答案 1 :(得分:2)

Firefox 23.0.1 + Firebug 1.12.0 + FirePHP 0.7.2 - 相同的版本设置和相同的问题...我检查FirePHP forum并且a topic about this issue。附加作者在那里写了

  

从度假回来后,我会在9月初看看。感谢您报告此问题。

所以在几个星期内问题将得到解决我希望。 :)

答案 2 :(得分:1)

似乎firePHP的这个问题不会很快得到解决,而且firebug已经再次更新。汤姆的答案确实有效,但由于他只指定了一个行号,因为行号与旧版本不对齐,因此该部分在新版本的firebug中不起作用。这里是如何找到插入Tom代码的正确位置:

在这里关注汤姆的回答:https://stackoverflow.com/a/18530316/769294

然后当你打开consolePanel.js时,你想要找到这个功能:

filterLogRow: function(logRow, scrolledToBottom)
{
    if (this.matchesFilter(logRow))
    {
        // Mark the groups, in which the log row is located, also as matched
        for (var group = Dom.getAncestorByClass(logRow, "logRow-group"); group;
            group = Dom.getAncestorByClass(group.parentNode, "logRow-group"))
        {
            Css.setClass(group, "contentMatchesFilter");
            // #################################################################
            // Add This line here
            // #################################################################
            if (typeof this.filterMatchSet == 'undefined') { this.filterMatchSet = []; }
            // #################################################################
            this.filterMatchSet.push(group);
        }
    }

    .......
},

正如你所看到的,我已经在你需要添加的行中添加了一些注释(来自Tom的回答),你可以看到它需要去的地方。

希望这有助于在不久的将来对firebug进行所有更新,直到firePHP修复为止。 :)

答案 3 :(得分:1)

使用Firebug 1.12.3修复了

The problem