public
Created

getting ruby-debug to work with cucumber

  • Download Gist
1-general-setup.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13
# Gemfile
group :development, :test do
# ... other gems here
gem 'ruby-debug19'
end
 
# features/support/env.rb
require 'ruby-debug'
 
# features/step_definitions/some_definitions.rb
Then /^I debug$/ do
debugger
end
2-the-right-way.rb
Ruby
1 2 3 4 5
# Gemfile
group :development, :test do
# ... other gems here
gem 'ruby-debug19', :require => 'ruby-debug'
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.