#7956 execution freezes on `debugger` statements when no inspector is open
Bug confirmed in wrangler 4.60.0. Root cause identified by maintainer: Debugger.enable sent prematurely. No fix merged in ~11 months.
Keep open - valid bug with clear fix path
Analysis Report
Issue Review: cloudflare/workers-sdk#7956
Summary
Worker execution freezes on debugger statements when no inspector is attached to the dev server.
Findings
- Created: 2025-01-29
- Updated: 2025-10-30
- Version: 3.106.0 → 4.60.0 (current)
- Component: Wrangler (InspectorProxyWorker)
- Labels: bug
- Comments: 1
Key Evidence
- Reproduction confirmed: Bug still present in wrangler 4.60.0. Request with
debuggerstatement times out after 5 seconds. - Root cause identified: Maintainer (dario-piotrowicz) identified the issue on 2025-03-04 - Wrangler prematurely sends
Debugger.enableto workerd's inspector websocket, causing it to pause on debugger statements even without an attached inspector. - No fix merged: No PRs reference this issue, changelog has no mention of this bug being fixed.
- Solution proposed: Only send
Debugger.enablewhen an inspector client actually connects.
Recommendation
Status: KEEP OPEN
Reasoning: This is a valid, reproducible bug with clearly identified root cause. The issue significantly impacts developer experience - any debugger statement (whether intentional or accidentally left in code) causes the entire dev server to become unresponsive. The maintainer has diagnosed the issue but no fix has been implemented yet.
Action: Keep open. This is a legitimate bug awaiting implementation of the proposed fix.
Suggested Comment
N/A - Issue should remain open as a valid, confirmed bug. The root cause has been identified and the proposed solution is clear. This just needs implementation.
Notes & Feedback (0)
No notes yet.