---
title: "如何在Cucumber下运行ruby-debug"
author: "夜鸣猪"
date: "2012-04-07T00:19:57Z"
tags: []
categories: ["编程语言"]
slug: "cucumber-ruby-debug"
draft: false
lastmod: "2012-04-10T02:16:12Z"
id: 1477781
url: "https://hlee.iteye.com/blog/1477781"
---

```ruby

# Gemfile
group :development, :test do
  # ... other gems here
  gem 'ruby-debug19', :require => 'ruby-debug'
end

# features/support/env.rb
require 'ruby-debug'

# features/step_definitions/some_definitions.rb
Then /^I debug$/ do
  debugger
end

```

http://www.robl.me/posts/i18n-translations-with-a-database-backend
https://github.com/dylanz/i18n_backend_database
https://github.com/svenfuchs/i18n-active_record