Restarting an rdbg attach session terminates the debuggee process

Đang mở
#1,184 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
ruby, vscode
Lĩnh vực
devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Ruby
Star
1.3k
Fork
146
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ruby/debug

Tất cả issue của ruby/debug

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.