debugger and binding.b are blocking in rspec, and not binding.pry for instance
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start with the provided RSpec reproduction and compare the debugger and binding.b entry points with binding.pry while the background request is running. Check whether the preload setup affects the behavior; done means debugger and binding.b no longer block those requests in the reproduction.
Written by the indexing model from the issue text.
Description
Your environment
ruby -v: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-darwin20]rdbg -v: rdbg 1.3.4
Describe the bug
When I do debugger or binding.b in my tests it blocks the background requests
To Reproduce
For instance:
require "rails_helper"
RSpec.describe "Approvals" do
let!(:user) { create(:user) }
let!(:approved_user) { create(:user) }
before { create(:event, :approved, user: approved_user) }
it "can approve events" do
system_login_as(user)
binding.b
end
end
Expected behavior
Requests are not blocked, like what binding.pry does
Additional context
I'm using the preload, maybe that's related
- 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
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
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
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
バグ
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