lib/pry-byebug/control_d_handler.rb (5 lines of code) (raw):
# frozen_string_literal: true
original_handler = Pry.config.control_d_handler
Pry.config.control_d_handler = proc do |pry_instance|
Byebug.stop if Byebug.stoppable?
original_handler.call(pry_instance)
end