Skip to content

🐛 BUG: Wrangler hangs when recording profile in Chrome inspector #4409

@ericmatthys

Description

@ericmatthys

Which Cloudflare product(s) does this pertain to?

Pages

What version(s) of the tool(s) are you using?

wrangler 3.15.0

What version of Node are you using?

18.16.0

What operating system are you using?

macOS Sonoma 14.1

Describe the Bug

Using the Chrome inspector, I have tried recording a profile both through the Performance tab as well as the deprecated Profiler tab (https://developer.chrome.com/blog/new-in-devtools-114/#js-profiler). After I click to start recording, I'll make a request to a worker / pages function, but the request hangs and never responds. If I try to stop recording in the Chrome inspector, that also seems to hang forever.

  • I have tried this in Chrome 120 (Beta) and 121 (Canary). For some reason the stable channel wasn't discovering wrangler in chrome://inspect.
  • If I start recording and stop without ever making a request to the worker / pages function, then it behaves normally.
  • I do not have any debugger; statements that might be interfering.
  • If I never try to record and make a request with the inspector open, I do see logs in the console from the pages function and it responds correctly.

Let me know what I can do to help track down this issue as it seems impossible to record a CPU profile right now to diagnose some performance issues.

Screenshot 2023-11-08 at 4 23 22 PM

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

Labels

blockedBlocked on other work

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions