All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

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.com
Snippet from the RSS feed
You 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

Comments

Sign in to join the conversation.

No comments yet. Be the first.