-
Notifications
You must be signed in to change notification settings - Fork 758
[Breakpoint] Adds XHR breakpoints #5255
Comments
For reference, the idea of breaking on XHRs was initially requested in Bugzilla as bug 821610. For what it's worth, Firebug had this feature and it had UIs within its Net and Console panels to set them and a Breakpoints side panel within its debugger to list and remove them. Sebastian |
I'm moving the issue to the icebox. We will re-prioritize the issues in the icebox at the beginning of the next release in 6 weeks. |
Here are some notes: @jlast What the Network panel needs is server side hook (and actor?) that can be used to create a new breakpoint using URL (and later other props like e.g. a keyword saying that the XHR breakpoint should break the execution only when the response body contains the keyword, etc.) Consequently we can play with the Net panel UI/UX... (edited) From API perspective, it could be as simple as: Here is detailed description of how it works in Firebug http://www.softwareishard.com/blog/firebug/firebug-15-xhr-breakpoints/ We need an observer that handles |
Here is the diff, I'll keep updating as I progress. It doesn't work atm. |
CC @janodvarko @jimblandy i think you'll enjoy @AnshulMalik thread actor patch above. My take on it is that is great that you have a frame and a url. We should be able to use that to get a script and set a breakpoint at the first entry-point of that script... I'm not sure if we want to loop over all of the scripts, there should be a better function on frame to get the script. I'd grep for |
Can we get this one out of icebox? |
Ohh I think we have covered the points from this bug, I have created another bug for enhancement. Sorry for the trouble. |
It is sometimes necessary to discover which functions called a specific XHR request.
The text was updated successfully, but these errors were encountered: