Rails 3.x 是否有调试工具栏

发布于 2024-12-03 18:46:37 字数 537 浏览 6 评论 0原文

我一年多前使用过 Rack::Bug ,现在我想将它与一个新的 Rails 3.1 项目。我尝试安装 master 和 Rails3 分支,但没有成功。

还尝试了 一些 github 分支,但它们也不起作用。

有没有具有相同功能的替代方案?

PS我已经知道newrelic及其开发者模式,只是在寻找其他东西,更类似于 Rack::Bug

这里有一个小屏幕截图,展示了它的功能(带有调试信息的绿色工具栏)

rack布布

I used Rack::Bug more than one year ago, now I'd like to use it with a new Rails 3.1 project. I tried to install it, both the master and rails3 branches, but with no luck.

Also tried some github forks but they did not work either.

Is there any alternative with the same features?

P.S. I already know newrelic and its developer mode, just looking for something else, more similar to Rack::Bug

Here is a little screen shoot of what is capable of (the green toolbar with debugging informations)

rack bub

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

柠檬色的秋千 2024-12-10 18:46:37

机架错误似乎已修复,rails3 分支在 3.1.1 上适用于我

Rack bug seems to e fixed, rails3 branch works for me on 3.1.1

滿滿的愛 2024-12-10 18:46:37

刚刚找到 rails-footnotes

在此处输入图像描述

优点:

  • 可以轻松
  • 在 html 中添加嵌入 TextMate 链接以快速编辑文件
  • 在 SQL 查询附近有一个跟踪链接,显示查询执行的位置

缺点:

  • 不好布局,你需要滚动到页面底部,我更喜欢像 Rack::Bug 这样的工具栏
  • 无法切换,总是执行
  • 缺少 ActiveRecord 实例化信息。在查找内存泄漏时非常有用。
  • 查询跟踪功能始终包含诸如 SHOW FIELDS FROM table SCHEMASHOW TABLES 之类的查询,
  • 分配选项卡中存在大量无用信息,例如整个 @_response_body@_view_renderer 对象(其中包括很多信息)

仍在寻找其他内容,任何提示都值得赞赏。

Just found rails-footnotes

enter image description here

Pro:

  • Easy to add
  • Embed TextMate links in your html to quick edit a file
  • Has a trace link near SQL queries that says WHERE the query is executed

Cons:

  • Bad layout, you need to scroll to the bottom of the page, I prefer a toolbar like Rack::Bug
  • Cannot be toggled, always executed
  • Missing ActiveRecord instantiation informations. Very useful when looking for memory leaks.
  • Query trace function always include queries like SHOW FIELDS FROM table SCHEMA and SHOW TABLES
  • Lot of useless informations in the assigns tab such as the whole @_response_body and the @_view_renderer object (which include a lot of informations)

Still looking for else, any hint is appreciated.

花伊自在美 2024-12-10 18:46:37

查看迷你分析器,它与 StackExchange 上使用的相同(除了移植到 Ruby)。 http://railscasts.com/episodes/368-miniprofiler?view=asciicast

Check out mini profiler, it's the same one used on StackExchange (except ported to Ruby). http://railscasts.com/episodes/368-miniprofiler?view=asciicast

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文