March 13, 2025 · Cloudflare
Workers - Set breakpoints and debug your Workers tests with @cloudflare/vitest-pool-workers
You can now debug your Workers tests with our Vitest integration by running the following command:
vitest --inspect --no-file-parallelism
Attach a debugger to the port 9229 and you can start stepping through your Workers tests. This is available with @cloudflare/vitest-pool-workers v0.7.5 or later.
Learn more in our documentation.