Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use breakpoint debugging when testing with Miniflare? #7870

Open
irvinebroque opened this issue Jan 22, 2025 · 0 comments
Open

How to use breakpoint debugging when testing with Miniflare? #7870

irvinebroque opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something that isn't working caretaking Priority for caretaking

Comments

@irvinebroque
Copy link
Contributor

Which Cloudflare product(s) does this pertain to?

Miniflare

What versions are you using?

latest

What operating system and version are you using?

latest

Please provide a link to a minimal reproduction

https://github.com/mjackson/miniflare-test

Describe the Bug

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:

  1. Open worker.js and add a breakpoint inside the fetch() handler
  2. Open a "JavaScript Debug Terminal" in VSCode
  3. Run node miniflare.js
  4. 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.

Please provide any relevant error logs

No response

@irvinebroque irvinebroque added the bug Something that isn't working label Jan 22, 2025
@lrapoport-cf lrapoport-cf added the caretaking Priority for caretaking label Jan 22, 2025
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working caretaking Priority for caretaking
Projects
Status: Untriaged
Development

No branches or pull requests

2 participants