We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
我只使用dBug。
I'd just use dBug.
你可以看看 FirePHP。它使您能够将信息写入 firebug 控制台。如果将数组或对象写入日志并将鼠标悬停在其上,您将获得该数组内容的良好呈现。以下是一个简单示例的屏幕截图。
You could take a look at FirePHP. It enables you to write information to the firebug-console. If you write an array or object to the log and hover with your mouse over it, you get a nice presentation of the contents of that array. Here is a screenshot of a simple example.
我做了一个你应该喜欢的 var_dump 替代方案:
http://raveren.github.io/kint/
演示内容感知功能的屏幕截图:
(来源:github.io)
I made a var_dump alternative you should like:
http://raveren.github.io/kint/
Screenshot demonstrating content-aware features:
(source: github.io)
有趣的问题。我会根据一些递归函数制作我自己的 var_dump() 等效项。我认为通过一些参数(例如嵌套级别、某些元素名称等)来传递它可能非常有用。
Interesting question. I'd make my own var_dump() equivalent based on some recursive function. With some parameters (such as nesting level, certain element name, etc) to pass it could be quite useful I think.