Sha256: 32b343f88ff90876d65044ea98de67cef23991a7554b1cc03f39e420047065ba

Contents?: true

Size: 744 Bytes

Versions: 1

Compression:

Stored size: 744 Bytes

Contents

module Byebug::DAP
  class Command::Disconnect < Command
    # "The ‘disconnect’ request is sent from the client to the debug adapter in order to stop debugging.
    # "It asks the debug adapter to disconnect from the debuggee and to terminate the debug adapter.
    # "If the debuggee has been started with the ‘launch’ request, the ‘disconnect’ request terminates the debuggee.
    # "If the ‘attach’ request was used to connect to the debuggee, ‘disconnect’ does not terminate the debuggee.
    # "This behavior can be controlled with the ‘terminateDebuggee’ argument (if supported by the debug adapter).

    register!

    def execute
      @session.stop!
      respond!
      event! 'terminated'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
byebug-dap-0.1.4 lib/byebug/dap/commands/disconnect.rb