Sha256: 62d49b70446567f00bc43d12c60f2e32ab3408436aad74a05944414f362e33c8

Contents?: true

Size: 465 Bytes

Versions: 2

Compression:

Stored size: 465 Bytes

Contents

module Byebug::DAP
  class Command::Next < ContextualCommand
    # "The request starts the debuggee to run again for one step.
    # "The debug adapter first sends the response and then a ‘stopped’ event (with reason ‘step’) after the step has completed.

    register!

    def execute_in_context
      @context.step_over(1, @context.frame.pos)
      :stop
    end

    private

    def forward_to_context(ctx)
      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/next.rb
byebug-dap-0.1.3 lib/byebug/dap/commands/next.rb