Skip to content

Instantly share code, notes, and snippets.

@banister
Created July 29, 2013 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banister/6104738 to your computer and use it in GitHub Desktop.
Save banister/6104738 to your computer and use it in GitHub Desktop.
Pry.commands.command "break-and-run" do
method_name = arg_string.split("(").first
run "break #{method_name}"
input = StringIO.new arg_string
Pry.start(target, :input => input)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment