Search This Blog

Wednesday, November 21, 2018

Set XHR breakpoints in Chrome Developer Tools

Use an XHR breakpoint when you want to break when the request URL of an XHR contains a specified string. DevTools pauses on the line of code where the XHR calls send().

To set an XHR breakpoint:
  1. Click the Sources tab.
  2. Expand the XHR Breakpoints pane.
  3. Click Add breakpoint.
  4. Enter the string which you want to break on. DevTools pauses when this string is present anywhere in an XHR's request URL.
  5. Press Enter to confirm.