Sha256: 93c234cd34c53e8074af943923392334e29b9113e1d3c0652a70d5da2546d0f8

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

module Byebug::DAP
  class Command::Initialize < Command
    # "The ‘initialize’ request is sent as the first request from the client to the debug adapter
    # "in order to configure it with client capabilities and to retrieve capabilities from the debug adapter.
    # "Until the debug adapter has responded to with an ‘initialize’ response, the client must not send any additional requests or events to the debug adapter.
    # "In addition the debug adapter is not allowed to send any requests or events to the client until it has responded with an ‘initialize’ response.
    # "The ‘initialize’ request may only be sent once.

    register!

    def execute
      respond! body: {
        supportsConfigurationDoneRequest: true,
        supportsFunctionBreakpoints: true,
        supportsConditionalBreakpoints: true,
        supportsHitConditionalBreakpoints: true,
        supportsLogPoints: true,
        supportsBreakpointLocationsRequest: true,
        supportsDelayedStackTraceLoading: true,
        exceptionBreakpointFilters: Command::SetExceptionBreakpoints::FILTERS,
        supportsExceptionInfoRequest: true,
      }

      event! 'initialized'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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