Skip to content

Restarting an rdbg attach session terminates the debuggee process #1184

Description

@hiroki-otaka

Your environment

  • ruby -v: 4.0.5
  • rdbg -v: 1.11.1

Describe the bug
When attaching to an existing Ruby process with rdbg, pressing the Restart button in VS Code terminates the debuggee process.

To Reproduce

  1. Start a Ruby process with rdbg attach enabled.
  2. Attach from VS Code using the rdbg extension.
  3. Press the Restart button in the Debug toolbar.

Expected behavior
The debugger session should restart/reconnect without terminating the attached Ruby process.

Additional context
When pressing Restart, VS Code sends:

{
  "command": "disconnect",
  "arguments": {
    "restart": true,
    "terminateDebuggee": true
  },
  "type": "request"
}

After this, the debuggee terminates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions