百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

stack_rescue

> 后端框架
开源

一个插件,可让 Rails 自动在 Google 中搜索 Rails 应用程序中引发的异常

171 stars0 点赞4 次浏览
访问官网GitHub

工具介绍

一个插件,可让 Rails 自动在 Google 中搜索 Rails 应用程序中引发的异常

StackRescue

A gem for Rails to automatically search Google for exceptions raised in your Rails applications.

After installing, you should see output like this in your Rails logs. This doesn't interfere with better_errors either!

Installation

Add this line to your application's Gemfile:

gem 'stack_rescue', group: :development

And then execute:

$ bundle

Or install it yourself as:

$ gem install stack_rescue

Usage

By default, search results are limited to 5 results and only from stackoverflow.com.

If you need to modify either of these, add the following to your config/environments/development.rb file:

ruby
  # Get results from any website
  config.stack_rescue.site = nil

  # Get results from only stackoverflow.com (default)
  # config.stack_rescue.site = "stackoverflow.com"

  # Change the number of results returned
  # config.stack_rescue.number_of_results = 3

Contributing

  1. Fork it ( https://github.com/excid3/stack_rescue/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

TODO

  • Use number_of_results option to request more pages of results at query time
  • All around usability improvements
  • It would be nice to have these results print after the stacktrace

Issues· 3 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubyexceptions-raisedrails-applicationruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架