Skip to content

Instantly share code, notes, and snippets.

@dpaluy
Last active September 29, 2016 19:58
Show Gist options
  • Select an option

  • Save dpaluy/a6ac0222a5463b8a1f63b300ad2295f8 to your computer and use it in GitHub Desktop.

Select an option

Save dpaluy/a6ac0222a5463b8a1f63b300ad2295f8 to your computer and use it in GitHub Desktop.
Dynamic Ruby Debugging
# Source: http://blog.iempire.ru/2016/09/23/breaking-points/
#
mod = Module.new do
def add(*args)
binding.pry
super
end
end
credit_card.errors.extend(mod)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment