Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions lib/pry-byebug/pry_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,16 @@ def start_with_pry_byebug(target = TOPLEVEL_BINDING, options = {})

alias start start_with_pry_byebug
end

class Pry
alias eval_without_pry_byebug eval

def eval_with_pry_byebug(line, options = {})
eval_without_pry_byebug(line, options)
rescue Exception
::Byebug.stop if ::Byebug.stoppable?
raise
end

alias eval eval_with_pry_byebug
end