Restarting an rdbg attach session terminates the debuggee process
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
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.
Written by the indexing model from the issue text.
Description
Your environment
ruby -v: 4.0.5rdbg -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
- Start a Ruby process with rdbg attach enabled.
- Attach from VS Code using the rdbg extension.
- 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.
- Dominant language
- Ruby
- Stars
- 1.3k
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby/debug
-
Support exceptionOptions in setExceptionBreakpoints to catch arbitrary exception classes via DAP Open
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
バグ
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
voxpupuli/puppet-epel#186 · 1 comment ·
-
external_created_at is no longer used for the message timestamp since the new message UI (v4.4.0) OpenBug Frontend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
TheOdinProject/curriculum#31402 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100