File: control_d_handler.rb

package info (click to toggle)
ruby-pry-byebug 3.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 324 kB
  • sloc: ruby: 1,171; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 212 bytes parent folder | download
1
2
3
4
5
6
7
8
9
# 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