Restarting an rdbg attach session terminates the debuggee process

未关闭
#1,184 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
ruby, vscode
领域
devtools

调研方向

Start by reproducing the VS Code Restart action with an rdbg attach session, then trace how the disconnect request handles restart: true and terminateDebuggee: true. Done means restarting or reconnecting the debugger without terminating the attached Ruby process; add or update coverage for this attach-session behavior if the relevant test location is found.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Ruby
星标
1.3k
派生
146
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ruby/debug 的其他 Issue

查看 ruby/debug 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。