The console become frozen while debugging in Rails

Open
#1,107 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
rails, ruby
Domain
devtools

Research direction

Reproduce the freeze with Ruby 3.2.3, rdbg 1.9.2, and Rails 7.0.8.1 by running rails test test\system\requests_test.rb after adding binding.break or debugger. Compare the behavior with the expected command prompt at the breakpoint; done means the console accepts debugging commands instead of becoming frozen.

Written by the indexing model from the issue text.

Description

Your environment

  • ruby -v: ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x64-mingw-ucrt]
  • rdbg -v: rdbg 1.9.2
  • rails -v: Rails 7.0.8.1

Describe the bug
The console become frozen while debugging in Rails.

imagen

To Reproduce
I set a Breakpoint in my code: 'binding.break' or 'debugger'. Next I run the Test: rails test test\system\requests_test.rb.

Expected behavior
A command prompt next to the breakpoint waiting for orders.

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.