Module: DEBUGGER__::TrapInterceptor
- Defined in:
- lib/debug/session.rb
Instance Method Summary collapse
Instance Method Details
#trap(sig, *command, &command_proc) ⇒ Object
2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 |
# File 'lib/debug/session.rb', line 2506 def trap sig, *command, &command_proc case sig&.to_sym when :INT, :SIGINT if defined?(SESSION) && SESSION.active? && SESSION.intercept_trap_sigint? return SESSION.save_int_trap(command.empty? ? command_proc : command.first) end end super end |