Sha256: 44f8f7217b8c31f4884ea80666e7d3de818ab7aa722844d5231b84e744ec5e16

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

module Byebug::DAP
  class Command::StepOut < 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_out(@context.frame.pos + 1, false)
      @context.frame = 0
      :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/step_out.rb
byebug-dap-0.1.3 lib/byebug/dap/commands/step_out.rb