Debug freezes after a few keystrokes

Open
#934 8 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
ruby
Domain
devtools

Research direction

Start by reproducing the freeze in the rdbg console with Ruby 3.1.1 and rdbg 1.7.1, using the Rails 7.0.4.3 context described in the report. Compare the same interaction with binding.pry and investigate the console input path. Done means repeated keystrokes no longer freeze the terminal and normal interruption remains possible.

Written by the indexing model from the issue text.

Description

Your environment

  • ruby -v: ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [arm64-darwin21]
  • rdbg -v: rdbg 1.7.1

Describe the bug
Debugger is freezing after typing a few keystrokes at random; almost reliably freezing with 3+ keystrokes. Any new key pressed just echoes in the screen the key pressed, but nothing happens.

image

It freezes the terminal window so bad that not even CTRL C can escape it:

image

To Reproduce

Just install a debugger anywhere in the code and start typing on the console.

Expected behavior
I expected it not to freeze.

If I use binding.pry instead, everything works just fine.

Additional context
Rails application (7.0.4.3)

Dominant language
Ruby
Stars
1.3k
Forks
146
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruby/debug

All issues in ruby/debug

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.