Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Polyphony doesn't work with debug gem #100

Description

@noteflakes
/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions