Sha256: 2ceacf8517b3a3ff568e26636e525ac3128c977daf02e49bfc02b2df8f44fb00

Contents?: true

Size: 882 Bytes

Versions: 2

Compression:

Stored size: 882 Bytes

Contents

module Byebug::DAP
  class Command::StepIn < ContextualCommand
    # "The request starts the debuggee to step into a function/method if possible.
    # "If it cannot step into a target, ‘stepIn’ behaves like ‘next’.
    # "The debug adapter first sends the response and then a ‘stopped’ event (with reason ‘step’) after the step has completed.
    # "If there are multiple function/method calls (or other targets) on the source line,
    # "the optional argument ‘targetId’ can be used to control into which target the ‘stepIn’ should occur.
    # "The list of possible targets for a given source line can be retrieved via the ‘stepInTargets’ request.

    register!

    def execute_in_context
      @context.step_into(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/step_in.rb
byebug-dap-0.1.3 lib/byebug/dap/commands/step_in.rb