Sha256: 10cf9fd7e7fa27b7a90c812ceb1519ec1a706ce6e00a8e7136d665b2a34f54af

Contents?: true

Size: 460 Bytes

Versions: 2

Compression:

Stored size: 460 Bytes

Contents

module Byebug::DAP
  class Command::Pause < ContextualCommand
    # "The request suspends the debuggee.
    # "The debug adapter first sends the response and then a ‘stopped’ event (with reason ‘pause’) after the thread has been paused successfully.

    register!

    def execute_in_context
      @processor.pause_requested = true
    end

    private

    def forward_to_context(ctx)
      ctx.interrupt
      super
      respond!
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
byebug-dap-0.1.4 lib/byebug/dap/commands/pause.rb
byebug-dap-0.1.3 lib/byebug/dap/commands/pause.rb