debugger and binding.b are blocking in rspec, and not binding.pry for instance
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Ruby
- Star
- 1.3k
- Fork
- 146
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ruby/debug
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
Support exceptionOptions in setExceptionBreakpoints to catch arbitrary exception classes via DAP Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
notch8/utk_knapsack#148 ·
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
betagouv/acces-cible#722 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
foobara/empty-ruby-project-generator#10 · 2 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100