Debug mode #1282
kettanaito
started this conversation in
RFC
Debug mode
#1282
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Short description
I propose to add debug mode to MSW.
Motivation
It's hard to debug issues around requests. MSW doesn't have any built-in debugger, so I usually breakpoint things manually every time. This is tedious and unnecessary.
Specification
debugin Interceptors right now. We may also consider usingdebugfor MSW as a part of this proposal.Behavior
FetchInterceptorto synchronously catch requests, bypass them, but check if requests happen before the worker is ready. Warn if they do and suggest how to resolve that race condition.Beta Was this translation helpful? Give feedback.
All reactions