Skip to content

🐛 BUG: execution freezes on debugger statements when no inspector is open #7956

@dario-piotrowicz

Description

@dario-piotrowicz

Which Cloudflare product(s) does this pertain to?

Wrangler, Miniflare

What versions are you using?

wrangler@3.106.0

What operating system and version are you using?

macOS Sequoia 15.2

Please provide a link to a minimal reproduction

https://github.com/dario-piotrowicz/my-create-cloudflare-worker-29-01-2025

Describe the Bug

Just adding a single debugger statement to a worker causes the whole process to freeze and not serve responses anymore, the only way to unblock execution is to open a devtools inspector

The way I reproduced this was by simply creating a worker using C3 (dario-piotrowicz/my-create-cloudflare-worker-29-01-2025@3996954), adding a debugger statement to my worker (dario-piotrowicz/my-create-cloudflare-worker-29-01-2025@95c7bb7) and running npm start, in such case requests don't get processed until I open an inspector that lets me hit the debugger.

Please provide any relevant error logs

No response

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions