Last active
September 29, 2016 19:58
-
-
Save dpaluy/a6ac0222a5463b8a1f63b300ad2295f8 to your computer and use it in GitHub Desktop.
Dynamic Ruby Debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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