polyphony icon indicating copy to clipboard operation
polyphony copied to clipboard

Polyphony doesn't work with debug gem

Open noteflakes opened this issue 1 year ago • 0 comments

/home/sharon/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/debug-1.8.0/lib/debug/session.rb:2544:in `trap': super: no superclass method `trap' for Polyphony:Module (NoMethodError)
Did you mean?  tap
        from examples/core/debug.rb:5:in `require'
        from examples/core/debug.rb:5:in `<main>'

The debug gem prepends a TrapInterceptor module that defines a #trap method into Object, Kernel, and Signal. We might want to use the same technique to override methods like #trap:

module ::Kernel
  prepend ForkInterceptor
  prepend TrapInterceptor
end

noteflakes avatar May 15 '23 09:05 noteflakes