精选理由
Cloudflare给wrangler dev加了本地追踪,编码代理调一个API就能找到Workers请求失败原因,不用部署,很方便。
Cloudflare的wrangler dev命令行工具现在会为每个本地请求生成结构化追踪记录。编码代理可通过单个API调用直接获取这些追踪,快速定位请求失败的具体环节。整个调试过程在本地完成,无需将代码部署到Cloudflare边缘网络。
原文 · Cloudflare Blog
Your agent can now debug Workers with local tracing
wrangler dev now produces structured traces for every local request. Your coding agent can hit a single API to pinpoint exactly what failed and why — no deployment required.