Workers - Debug, profile, and view logs for your Worker in Chrome Devtools โ now supported in the Cloudflare Vite plugin
1y ago
Source
CloudflareWorkers - Debug, profile, and view logs for your Worker in Chrome Devtools โ now supported in the Cloudflare Vite plugincloudflare.comYou can now debug, profile, view logs, and analyze memory usage for your Worker using Chrome Devtools when your Worker runs locally using the Cloudflare Vite plugin . Previously, this was only possible if your Worker ran locally using the Wrangler CLI , and now you can do all the same things if your Worker uses Vite . When you run vite , you'll now see a debug URL in your console: VITE v6.3.5 ready in 461 ms โ Local: โ Network: use --host to expose โ Debug: โ press h + enter to show help Open the URL in Chrome, and an instance of Chrome Devtools will open and connect to your Worker running locally. You can then use Chrome Devtools to debug and introspect performance issues. For example, you can navigate to the Performance tab to understand where CPU time is spent in your Worker: For more information on how to get the most out of Chrome Devtools, refer to the following docs: Debug code by setting breakpoints Profile CPU usage Observe memory usage and debug memory leaks
You might also wanna read
Cloudflare Addresses CPU Performance Benchmarks for Workers Platform
Cloudflare investigated and responded to independent benchmarks by Theo Browne that showed Cloudflare Workers performing 3.5x slower than Ve
OpenWorkers: Open-Source Runtime for Self-Hosted Cloudflare Workers Implementation
OpenWorkers is an open-source runtime that enables developers to run Cloudflare Workers-style JavaScript applications on their own infrastru
Debugging JavaScript Memory Leaks
bun.comยท1y ago

Comments
Sign in to join the conversation.
No comments yet. Be the first.