debugger icon indicating copy to clipboard operation
debugger copied to clipboard

Support XHR breakpoints with methods

Open AnshulMalik opened this issue 7 years ago • 6 comments

Currently, we support breaking on a network request if the URL contains some string. It'd be a nice improvement if we can also specify the method(GET, POST, etc.) of the request to give the user more control.

Here is how the UI should look like

I'll be happy to mentor if someone would like to give it a try :)

Here is how we render the breakpoints: https://github.com/devtools-html/debugger.html/blob/master/src/components/SecondaryPanes/XHRBreakpoints.js#L171-L210

AnshulMalik avatar Jan 03 '19 08:01 AnshulMalik

that mockup looks nice! Do you think we could have a default of All (or something with a better wording), so by default, the user only has to enter a URL without taking care of the method? My gut feeling is that most people only have 1 method for a given endpoint, and having to select the method would be an extra step that don't have values for them. Then, with the UI, they can restrict to a specific method if they want to.

nchevobbe avatar Jan 03 '19 08:01 nchevobbe

Yeah @nchevobbe by default it should be set to ALL or ANY which would just pause on any method. I think we have the logic in place on server side to handle this as well.

AnshulMalik avatar Jan 03 '19 09:01 AnshulMalik

I can take this on :)

jaril avatar Jan 04 '19 13:01 jaril

@notjaril Please type /claim in the comment, to claim this issue

this is how you can claim the issue https://github.com/devtools-html/debugger.html/blob/master/docs/issues.md#claiming-issues :) Good luck and thanks for helping.

princiya avatar Jan 04 '19 14:01 princiya

/claim

jaril avatar Jan 04 '19 16:01 jaril

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Jan 04 '19 16:01 claim