Chrome上的Firebug Lite-如何使用PHP登录控制台


Firebug Lite on Chrome - how to log to console with PHP

我在Chrome中安装了扩展Firebug Lite。在Firefox中,我使用FirePHP在控制台中记录消息,但我无法在Chrome中使用它。

我还安装了ChromeHP。有了这个,我可以将消息记录到内置的Chrome开发工具,但我希望登录到Firebug Lite!

这甚至可以从PHP向Firebug Lite中的控制台发送消息吗?

在普通的Firebug中也不能做到这一点(我说的是Firefox)。为此,您必须使用FirePHP。所以你不能在Firebug Lite中做到这一点,而我不这样做;我不认为有任何类似于FirePHP for Chrome的扩展(可以与Firebug Lite交互)。对于PHP&Ajax调试我正在使用PHP控制台扩展https://chrome.google.com/webstore/detail/nfhmhhlpfleoednkpnnnkolmclajemef?hl=en-我们。

更新我找到了一个更好的解决方案,那就是:https://github.com/andrewn/firephp-chrome.最棒的是,它允许Chrome控制台显示FirePHP消息。有一些错误,但我对此很满意。

您必须将其回显到javascript。

function ConsoleLog($message)
{
    echo '<script>console.log("' . $message. '")</script>';
}

如果您正在寻找一个简单/轻量级的解决方案,您也可以尝试ChromeHP:

https://chrome.google.com/webstore/detail/noaneddfkdjfnfdakjjmocngnfkfehhd

入门指南位于:

http://www.chromephp.com