I'm trying to get breakpoint debugging working with Miniflare. The Cloudflare docs seem to suggest it's possible.
Ideally, what I'd like to be able to do is:
- Open
worker.jsand add a breakpoint inside thefetch()handler - Open a "JavaScript Debug Terminal" in VSCode
- Run
node miniflare.js - Pause at the breakpoint in the worker code
However, this doesn't seem to work right now :/
A nice bonus would be to be able to write everything in TypeScript, but I was trying to keep this example as minimal as possible.