Created
August 4, 2012 01:57
-
-
Save jasonLaster/3253484 to your computer and use it in GitHub Desktop.
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
create_command 'debug' do | |
description 'Debug method call.' | |
banner <<-BANNER | |
Usage: debug foo(bar) | |
step inside method invocation. | |
BANNER | |
command_options :takes_block => true | |
def process | |
binding.pry :input => args.first | |
target.instance_eval &command_block | |
s = "_pry_.input = Readline; #{args.join(" ")}" | |
binding.pry :input => StringIO.new("#{args.join(" ")}") | |
target.instance_eval | |
end | |
end |
Author
jasonLaster
commented
Aug 4, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment