You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user app is placed in the hydrogen worker, while the oxygen worker contains some logic for asset handling and other debugging features (not shown in this example).
The problem is that VSCode only tracks the code for the oxygen worker (I assume it's just because it comes first) and completely ignores the other workers.
If I remove oxygen and move hydrogen to the first position, then step debugging works.
Is there any way to make it work with multiple workers? Or should we just use 1 single worker in development? I can certainly move the custom logic in oxygen to a Node.js server proxy and call mf.dispatchFetch(...) instead.
Thanks!
The text was updated successfully, but these errors were encountered:
Alright I think I figured it out. VSCode connects automatically to the first source returned by the /json request to the inspector port.
It's possible to choose directly the WebSocket address in launch.json:
Hello! I'm having issues setting up step debugging when using multiple workers in Miniflare 3:
I'm attaching a debugger in VSCode with the following
launch.json
:The user app is placed in the
hydrogen
worker, while theoxygen
worker contains some logic for asset handling and other debugging features (not shown in this example).The problem is that VSCode only tracks the code for the
oxygen
worker (I assume it's just because it comes first) and completely ignores the other workers.If I remove
oxygen
and movehydrogen
to the first position, then step debugging works.Is there any way to make it work with multiple workers? Or should we just use 1 single worker in development? I can certainly move the custom logic in
oxygen
to a Node.js server proxy and callmf.dispatchFetch(...)
instead.Thanks!
The text was updated successfully, but these errors were encountered: