Skip to content

Session remains active after the last step (ruby rdbg debug-adapter) #429

@oats4goats

Description

@oats4goats

Debug adapter definition and debug configuration

local dap = require('dap')
dap.adapters.ruby = {
  type = 'server';
  host = '127.0.0.1';
  port = 38698;
}

dap.configurations.ruby = {
  {
    type = 'ruby';
    name = 'debug current file';
    request = 'attach';
    port = 38698;
    server = '127.0.0.1';
  },
}

Debug adapter version

1.4.0

Steps to Reproduce

  1. Start a debug-adapter with rdbg --open --port 38698 target.rb in a terminal
  2. Attach to the adapter with :lua require'dap'.continue()
  3. Continue or step over till the very end of the program. The adapter in the terminal disconnects.
  4. Inspect the state by :lua require'dap'.repl.open(). The session is still open.

Expected Result

The session is closed after the last step. Analogous to the behaviour of this adapter in VSCode. Otherwise, it has to be done manually before the next debug session.

Actual Result

The session remains active after the last step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions