debugger and binding.b are blocking in rspec, and not binding.pry for instance
還沒有人認領這個 Issue。
評估
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- Ruby
- 星號
- 1.3k
- 分支
- 146
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ruby/debug 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 68/100
-
Support exceptionOptions in setExceptionBreakpoints to catch arbitrary exception classes via DAP 未關閉
難度 4/5 3-5 天 新手友好度 55/100
-
難度 3/5 1-2 天 新手友好度 45/100
-
難度 4/5 3-5 天 新手友好度 52/100
-
難度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
palladius/rails8-app-on-gcp#145 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
rubocop/rubocop-rspec#2236 ·
-
bug
難度 2/5 1-3 小時 新手友好度 70/100
riscv/riscv-unified-db#2624 · 1 個 reaction ·
-
難度 1/5 1 小時以內 新手友好度 88/100