Skip to content

q! command doesn't exit remote debuggee correctly #815

@ono-max

Description

@ono-max

Your environment

  • ruby -v:
  • ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin21]
  • rdbg -v:
  • master

Describe the bug
I just noticed q! doesn't exit remote debuggee through #813.

To Reproduce

a=1
$ exe/rdbg target.rb -O
DEBUGGER: Debugger can attach via UNIX domain socket (/var/folders/5j/z2c9zm7124q81f_py4xmd3scp7w9j7/T/ruby-debug-sock-746464807/ruby-debug-s15236-53533)
DEBUGGER: wait for debugger connection...
DEBUGGER: Connected.
DEBUGGER: Disconnected.
# debuggee is not terminated here.
$ exe/rdbg -A
DEBUGGER (client): Connected. PID:53533, $0:a.rb

[1, 1] in a.rb
=>   1| a=1
=>#0	<main> at a.rb:1
(ruby:remote) q!
disconnected (quit)

Expected behavior
It should exit remote debuggee.

Additional context
q[uit] or Ctrl-D exits remote debuggee correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions